From c3758e06e19bfca8e8829205e3775e84fcc8e749 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 14 Dec 2023 14:39:56 +0000 Subject: [PATCH] Correct spelling mistake (#136) --- docs/pages/design/index.md | 6 +++--- examples/webapps/webgl/src/webgl-demo.ts | 2 +- libs/xtsb/src/nodeConnection.ts | 2 +- libs/xtsb/xcbgen/expr.py | 2 +- libs/xtsb/xcbgen/ts_client.py | 2 +- libs/xtsb/xcbgen/xtypes.py | 10 +++++----- sdk/sysrootlibs/jslibraries/library_unixsockfs.js | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/pages/design/index.md b/docs/pages/design/index.md index ab6bb9a7..6ec13be2 100644 --- a/docs/pages/design/index.md +++ b/docs/pages/design/index.md @@ -96,7 +96,7 @@ the H.264 WebCodecs API, which can either use the GPU of the receiving browser c ## Browser Connection The current implementation of Compositor Proxy uses WebSockets to deliver data to the browser. WebSockets operate over TCP which is ill-suited for real-time applications. -Instead, a UDP based protocol is needed. Browsers today unfortunately have no support for UDP based protocols aside from WebRTC DataChannels. However, we can not use WebRTC DataChannels as the build-in SCTP congestion algorithm is unacceptably slow. +Instead, a UDP based protocol is needed. Browsers today unfortunately have no support for UDP based protocols aside from WebRTC DataChannels. However, we can not use WebRTC DataChannels as the built-in SCTP congestion algorithm is unacceptably slow. A more low level UDP protocol is required and is currently in the works in the form of the WebTransport protocol. Once WebTransport becomes more widely available, we can operate in UDP mode and assure fast end reliable transfers using [KCP](https://github.com/skywind3000/kcp/blob/master/README.en.md) in combination with forward-error-correction. @@ -176,7 +176,7 @@ paths `/gtk4-demo`, `/kwrite` and `/xterm` to an executable with additional cont > setup. QT applications often require an extra `-platform wayland` parameter. For XWayland support a few extra steps may be needed, this is optional and only required if you don't already -hava an X server running e.g. when running on a server. These commands should be executed before starting the +have an X server running e.g. when running on a server. These commands should be executed before starting the Compositor Proxy CLI. ```shell @@ -201,4 +201,4 @@ This image includes a full build of the Compositor Proxy CLI and is suitable for Example usage can be found in `examples/docker-compose`. {: .important } ->The Docker image only provides a build of the Compositor Proxy CLI. You still need to run the Compositor Shell separately. \ No newline at end of file +>The Docker image only provides a build of the Compositor Proxy CLI. You still need to run the Compositor Shell separately. diff --git a/examples/webapps/webgl/src/webgl-demo.ts b/examples/webapps/webgl/src/webgl-demo.ts index 607c20d0..5e0346ce 100644 --- a/examples/webapps/webgl/src/webgl-demo.ts +++ b/examples/webapps/webgl/src/webgl-demo.ts @@ -187,7 +187,7 @@ function initShaderProgram(gl: WebGLRenderingContext, vsSource: string, fsSource } const fragmentShader = loadShader(gl, gl.FRAGMENT_SHADER, fsSource) if (fragmentShader === null) { - throw new Error('Could not crate fragment shader.') + throw new Error('Could not create fragment shader.') } // Create the shader program diff --git a/libs/xtsb/src/nodeConnection.ts b/libs/xtsb/src/nodeConnection.ts index d4fdb1ac..292e6599 100644 --- a/libs/xtsb/src/nodeConnection.ts +++ b/libs/xtsb/src/nodeConnection.ts @@ -85,7 +85,7 @@ function parseXauth(buf: Uint8Array): Cookie[] { offset += 2 if (cookie.type === 0 && property === 'address') { // Internet - // 4 bytes of ip addess, convert to w.x.y.z string + // 4 bytes of ip address, convert to w.x.y.z string cookie.address = [buf[offset], buf[offset + 1], buf[offset + 2], buf[offset + 3]] .map((octet) => octet.toString(10)) .join('.') diff --git a/libs/xtsb/xcbgen/expr.py b/libs/xtsb/xcbgen/expr.py index bf46c636..35b4cca3 100644 --- a/libs/xtsb/xcbgen/expr.py +++ b/libs/xtsb/xcbgen/expr.py @@ -164,7 +164,7 @@ def resolve(self, module, parents): fields = dict([(f.field_name, f) for f in p.fields]) if self.lenfield_name in fields.keys(): if p.is_case_or_bitcase: - # switch is the anchestor + # switch is the ancestor self.lenfield_parent = p.parents[-1] else: self.lenfield_parent = p diff --git a/libs/xtsb/xcbgen/ts_client.py b/libs/xtsb/xcbgen/ts_client.py index 76f03e9f..4711b651 100644 --- a/libs/xtsb/xcbgen/ts_client.py +++ b/libs/xtsb/xcbgen/ts_client.py @@ -6,7 +6,7 @@ # Jump to the bottom of this file for the main routine -# Some hacks to make the API more readable, and to keep backwards compability +# Some hacks to make the API more readable, and to keep backwards compatibility import sys _tsname_re = re.compile('^\d') diff --git a/libs/xtsb/xcbgen/xtypes.py b/libs/xtsb/xcbgen/xtypes.py index 8ac768e1..023d954b 100644 --- a/libs/xtsb/xcbgen/xtypes.py +++ b/libs/xtsb/xcbgen/xtypes.py @@ -141,7 +141,7 @@ def get_alignment_after(self, start_align, callstack, log): def unchecked_get_alignment_after(self, start_align, callstack, log): ''' - Abstract method for geting the alignment after this type + Abstract method for getting the alignment after this type when the alignment at the start is given, and when this type has variable size. ''' @@ -788,7 +788,7 @@ def resolve(self, module): else: field_type = self.name + (field_name,) - # use self.parent to indicate anchestor, + # use self.parent to indicate ancestor, # as switch does not contain named fields itself if child.tag == 'bitcase': type = BitcaseType(index, field_type, child, *parents) @@ -850,7 +850,7 @@ def make_member_of(self, module, complex_type, field_type, field_name, visible, def calc_size(self): pass - # note: switch is _always_ of variable size, but we indicate here wether + # note: switch is _always_ of variable size, but we indicate here whether # it contains elements that are variable-sized themselves def fixed_size(self): return False @@ -944,7 +944,7 @@ def get_align_for_selected_case_field(self, case_field, start_align, callstack, if log is not None: if after_field_align is None: log.fail(total_align, field.field_name, field.type, my_callstack, - "invalid aligment for this case branch") + "invalid alignment for this case branch") else: log.ok(total_align, field.field_name, field.type, my_callstack, after_field_align) @@ -957,7 +957,7 @@ def get_align_for_selected_case_field(self, case_field, start_align, callstack, if after_field_align is None: if log is not None: log.fail(total_align, field.field_name, field.type, my_callstack, - "invalid aligment for this bitcase branch") + "invalid alignment for this bitcase branch") total_align = None else: if log is not None: diff --git a/sdk/sysrootlibs/jslibraries/library_unixsockfs.js b/sdk/sysrootlibs/jslibraries/library_unixsockfs.js index f77c26a7..46455ce7 100644 --- a/sdk/sysrootlibs/jslibraries/library_unixsockfs.js +++ b/sdk/sysrootlibs/jslibraries/library_unixsockfs.js @@ -385,7 +385,7 @@ '$FS', // The dependency of FS on `mmapAlloc` and `mmapAlloc` on // `emscripten_builtin_memalign` are not encoding as hard dependencies, - // so we need to explictly depend on them here to ensure a working + // so we need to explicitly depend on them here to ensure a working // `FS.mmap`. // `emscripten_builtin_memalign`). '$mmapAlloc', @@ -586,4 +586,4 @@ } autoAddDeps(LibraryUnixSockFS, '$UNIXSOCKFS') -mergeInto(LibraryManager.library, LibraryUnixSockFS) \ No newline at end of file +mergeInto(LibraryManager.library, LibraryUnixSockFS)