Skip to content

Commit aa3c34b

Browse files
authored
Merge pull request atom#20989 from NotMoni/NotMoni-fix-typos
Fix Typos
2 parents f9a9e57 + 32bd100 commit aa3c34b

6 files changed

+8
-8
lines changed

docs/rfcs/001-updatable-bundled-packages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The primary drawback of this approach is that Updatable bundled packages might e
6060

6161
### Increased Atom startup time
6262

63-
Another major drawback is that the snapshotted code for the bundled package will no longer be used since a newer version has been installed. This updated version of the package cannot be easily added back into Atom's snapshot so it could cause a noticable drag on Atom's startup time. Some quick measurements with Timecop show a 10x increase in GitHub package load time for bundled (snapshot) vs updated (non-snapshot) package code:
63+
Another major drawback is that the snapshotted code for the bundled package will no longer be used since a newer version has been installed. This updated version of the package cannot be easily added back into Atom's snapshot so it could cause a noticeable drag on Atom's startup time. Some quick measurements with Timecop show a 10x increase in GitHub package load time for bundled (snapshot) vs updated (non-snapshot) package code:
6464

6565
| GitHub Package Code | Load Time |
6666
|----------------------------------|-----------|

src/grammar-registry.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ module.exports = class GrammarRegistry {
154154
// * `buffer` The {TextBuffer} whose grammar will be set.
155155
// * `grammar` The desired {Grammar}.
156156
//
157-
// Returns a {Boolean} that indicates whether the assignment was sucessful
157+
// Returns a {Boolean} that indicates whether the assignment was successful
158158
assignGrammar(buffer, grammar) {
159159
if (!grammar) return false;
160160
if (buffer.getBuffer) buffer = buffer.getBuffer();
@@ -547,7 +547,7 @@ module.exports = class GrammarRegistry {
547547
// * `grammarPath` A {String} absolute file path to a grammar file.
548548
// * `callback` A {Function} to call when loaded with the following arguments:
549549
// * `error` An {Error}, may be null.
550-
// * `grammar` A {Grammar} or null if an error occured.
550+
// * `grammar` A {Grammar} or null if an error occurred.
551551
loadGrammar(grammarPath, callback) {
552552
this.readGrammar(grammarPath, (error, grammar) => {
553553
if (error) return callback(error);
@@ -572,7 +572,7 @@ module.exports = class GrammarRegistry {
572572
// * `grammarPath` A {String} absolute file path to a grammar file.
573573
// * `callback` A {Function} to call when read with the following arguments:
574574
// * `error` An {Error}, may be null.
575-
// * `grammar` A {Grammar} or null if an error occured.
575+
// * `grammar` A {Grammar} or null if an error occurred.
576576
//
577577
// Returns undefined.
578578
readGrammar(grammarPath, callback) {

src/ripgrep-directory-searcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function processUnicodeMatch(match) {
129129

130130
// This function processes a ripgrep submatch to create the correct
131131
// range. This is mostly needed for multi-line results, since the range
132-
// will have differnt start and end rows and we need to calculate these
132+
// will have different start and end rows and we need to calculate these
133133
// based on the lines that ripgrep returns.
134134
function processSubmatch(submatch, lineText, offsetRow) {
135135
const lineParts = lineText.split('\n');

src/text-editor-component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ module.exports = class TextEditorComponent {
18681868
// keydown(code: X), keypress, keydown(code: X)
18691869
//
18701870
// The code X must be the same in the keydown events that bracket the
1871-
// keypress, meaning we're *holding* the _same_ key we intially pressed.
1871+
// keypress, meaning we're *holding* the _same_ key we initially pressed.
18721872
// Got that?
18731873
didKeydown(event) {
18741874
// Stop dragging when user interacts with the keyboard. This prevents

src/text-editor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ module.exports = class TextEditor {
25972597
// * __cursor__: Render a cursor at the head of the {DisplayMarker}. If multiple cursor decorations
25982598
// are created for the same marker, their class strings and style objects are combined
25992599
// into a single cursor. This decoration type may be used to style existing cursors
2600-
// by passing in their markers or to render artificial cursors that don't actaully
2600+
// by passing in their markers or to render artificial cursors that don't actually
26012601
// exist in the model by passing a marker that isn't associated with a real cursor.
26022602
//
26032603
// ## Arguments

src/uri-handler-registry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const { Emitter, Disposable } = require('event-kit');
2727
// is triggered. If you need your package to activate right away, you can add
2828
// `"deferActivation": false` to your "uriHandler" configuration object. When activation
2929
// is deferred, once Atom receives a request for a URI in your package's namespace, it will
30-
// activate your pacakge and then call `methodName` on it as before.
30+
// activate your package and then call `methodName` on it as before.
3131
//
3232
// If your package specifies a deprecated `urlMain` property, you cannot register URI handlers
3333
// via the `uriHandler` key.

0 commit comments

Comments
 (0)