Skip to content

Commit 9123b17

Browse files
authored
Fix typos in comments (mostly NFC) (#26022)
This fixes typos in code comments. Split out of #26014.
1 parent c366a69 commit 9123b17

File tree

196 files changed

+462
-462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+462
-462
lines changed

embuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def main():
277277
tasks.append(name)
278278
else:
279279
# There are some ports that we don't want to build as part
280-
# of ALL since the are not well tested or widely used:
280+
# of ALL since they are not well tested or widely used:
281281
if 'cocos2d' in targets:
282282
targets.remove('cocos2d')
283283

emcc.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ class Mode(Enum):
9494
class LinkFlag:
9595
"""Used to represent a linker flag.
9696
97-
The flag value is stored along with a bool that distingingishes input
97+
The flag value is stored along with a bool that distinguishes input
9898
files from non-files.
9999
100-
A list of these is return by separate_linker_flags.
100+
A list of these is returned by separate_linker_flags.
101101
"""
102102
value: str
103103
is_file: int
@@ -281,7 +281,7 @@ def main(args):
281281
if 'EMCC_REPRODUCE' in os.environ:
282282
options.reproduce = os.environ['EMCC_REPRODUCE']
283283

284-
# For internal consistency, ensure we don't attempt or read or write any link time
284+
# For internal consistency, ensure we don't attempt to read or write any link time
285285
# settings until we reach the linking phase.
286286
settings.limit_settings(COMPILE_TIME_SETTINGS)
287287

@@ -510,13 +510,13 @@ def get_clang_command_asm():
510510
compile_args, linker_args = separate_linker_flags(newargs)
511511

512512
# Map of file basenames to how many times we've seen them. We use this to generate
513-
# unique `_NN` suffix for object files in cases when we are compiling multiple soures that
513+
# unique `_NN` suffix for object files in cases when we are compiling multiple sources that
514514
# have the same basename. e.g. `foo/utils.c` and `bar/utils.c` on the same command line.
515515
seen_names = {}
516516

517517
def uniquename(name):
518518
if name not in seen_names:
519-
# No suffix needed the firt time we see given name.
519+
# No suffix needed the first time we see given name.
520520
seen_names[name] = 1
521521
return name
522522

@@ -547,7 +547,7 @@ def compile_source_file(input_file):
547547
# but we want the `.dwo` file to be generated in the current working directory,
548548
# like it is under clang. We could avoid this hack if we use the clang driver
549549
# to generate the temporary files, but that would also involve using the clang
550-
# driver to perform linking which would be big change.
550+
# driver to perform linking which would be a big change.
551551
cmd += ['-Xclang', '-split-dwarf-file', '-Xclang', unsuffixed_basename(input_file) + '.dwo']
552552
cmd += ['-Xclang', '-split-dwarf-output', '-Xclang', unsuffixed_basename(input_file) + '.dwo']
553553
shared.check_call(cmd)

emrun.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def kill_browser_process():
415415

416416
# Heuristic that attempts to search for the browser process IDs that emrun spawned.
417417
# This depends on the assumption that no other browser process IDs have been spawned
418-
# during the short time perioed between the time that emrun started, and the browser
418+
# during the short time period between the time that emrun started, and the browser
419419
# process navigated to the page.
420420
# This heuristic is needed because all modern browsers are multiprocess systems -
421421
# starting a browser process from command line generally launches just a "stub" spawner
@@ -443,7 +443,7 @@ def pid_existed(pid):
443443
logv('Was unable to detect the browser process that was spawned by emrun. This may occur if the target page was opened in a tab on a browser process that already existed before emrun started up.')
444444

445445

446-
# Our custom HTTP web server that will server the target page to run via .html.
446+
# Our custom HTTP web server that will serve the target page to run via .html.
447447
# This is used so that we can load the page via a http:// URL instead of a
448448
# file:// URL, since those wouldn't work too well unless user allowed XHR
449449
# without CORS rules. Also, the target page will route its stdout and stderr
@@ -477,7 +477,7 @@ def handle_incoming_message(self, seq_num, log, data):
477477
if len(self.http_message_queue) > 16:
478478
self.print_next_message()
479479

480-
# If it's been too long since we we got a message, prints out the oldest
480+
# If it's been too long since we got a message, prints out the oldest
481481
# queued message, ignoring the proper order. This ensures that if any
482482
# messages are actually lost, that the message queue will be orderly flushed.
483483
def print_timed_out_messages(self):
@@ -1005,7 +1005,7 @@ def win_get_file_properties(fname):
10051005
props = {'FixedFileInfo': None, 'StringFileInfo': None, 'FileVersion': None}
10061006

10071007
import win32api
1008-
# backslash as parm returns dictionary of numeric info corresponding to VS_FIXEDFILEINFO struct
1008+
# backslash as param returns dictionary of numeric info corresponding to VS_FIXEDFILEINFO struct
10091009
fixedInfo = win32api.GetFileVersionInfo(fname, '\\')
10101010
props['FixedFileInfo'] = fixedInfo
10111011
props['FileVersion'] = "%d.%d.%d.%d" % (fixedInfo['FileVersionMS'] / 65536,
@@ -1017,7 +1017,7 @@ def win_get_file_properties(fname):
10171017
# pairs that can be used to retrieve string info. We are using only the first pair.
10181018
lang, codepage = win32api.GetFileVersionInfo(fname, '\\VarFileInfo\\Translation')[0]
10191019

1020-
# any other must be of the form \StringfileInfo\%04X%04X\parm_name, middle
1020+
# any other must be of the form \StringfileInfo\%04X%04X\param_name, middle
10211021
# two are language/codepage pair returned from above
10221022

10231023
strInfo = {}
@@ -1577,7 +1577,7 @@ def parse_args(args):
15771577
parser.add_argument('cmdlineparams', nargs='*')
15781578

15791579
# Support legacy argument names with `_` in them (but don't
1580-
# advertize these in the --help message).
1580+
# advertise these in the --help message).
15811581
for i, a in enumerate(args):
15821582
if a == '--':
15831583
break

site/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
]
7272

7373

74-
#Build "Todo" notes into the source
74+
# Build "Todo" notes into the source
7575
#todo_include_todos = 'True'
7676

7777
# Add any paths that contain templates here, relative to this directory.

src/Fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ function fetchGetResponseHeaders(id, dst, dstSizeBytes) {
840840
return stringToUTF8(responseHeaders, dst, dstSizeBytes) + 1;
841841
}
842842

843-
//Delete the xhr JS object, allowing it to be garbage collected.
843+
// Delete the xhr JS object, allowing it to be garbage collected.
844844
function fetchFree(id) {
845845
#if FETCH_DEBUG
846846
dbg(`fetch: fetchFree id:${id}`);

src/audio_worklet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function createWasmAudioWorkletProcessor() {
4646
// Prepare the output views; see createOutputViews(). The 'STACK_ALIGN'
4747
// deduction stops the STACK_OVERFLOW_CHECK failing (since the stack will
4848
// be full if we allocate all the available space) leaving room for a
49-
// single AudioSampleFrame as a minumum. There's an arbitrary maximum of
49+
// single AudioSampleFrame as a minimum. There's an arbitrary maximum of
5050
// 64 frames, for the case where a multi-MB stack is passed.
5151
this.outputViews = new Array(Math.min(((wwParams.stackSize - {{{ STACK_ALIGN }}}) / this.bytesPerChannel) | 0, /*sensible limit*/ 64));
5252
#if ASSERTIONS

src/closure-externs/closure-externs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ var moduleRtn;
244244
/**
245245
* This was removed from upstream closure compiler in
246246
* https://github.com/google/closure-compiler/commit/f83322c1b.
247-
* Perhaps we should remove it do?
247+
* Perhaps we should remove it too?
248248
*
249249
* @param {MediaStreamConstraints} constraints A MediaStreamConstraints object.
250250
* @param {function(!MediaStream)} successCallback

src/emrun_postjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2013 The Emscripten Authors
44
* SPDX-License-Identifier: MIT
55
*
6-
* This file gets implicatly injected as a `--post-js` file when
6+
* This file gets implicitly injected as a `--post-js` file when
77
* emcc is run with `--emrun`
88
*/
99

src/emrun_prejs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2013 The Emscripten Authors
44
* SPDX-License-Identifier: MIT
55
*
6-
* This file gets implicatly injected as a `--pre-js` file when
6+
* This file gets implicitly injected as a `--pre-js` file when
77
* emcc is run with `--emrun`
88
*/
99

src/lib/libaddfunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ addToLibrary({
227227
#else
228228
// Set the new value.
229229
try {
230-
// Attempting to call this with JS function will cause of table.set() to fail
230+
// Attempting to call this with JS function will cause table.set() to fail
231231
setWasmTableEntry(ret, func);
232232
} catch (err) {
233233
if (!(err instanceof TypeError)) {

0 commit comments

Comments
 (0)