Skip to content

Commit

Permalink
Correct spelling mistake (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBetts authored Dec 14, 2023
1 parent 234b9a4 commit c3758e0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions docs/pages/design/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand All @@ -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.
>The Docker image only provides a build of the Compositor Proxy CLI. You still need to run the Compositor Shell separately.
2 changes: 1 addition & 1 deletion examples/webapps/webgl/src/webgl-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/xtsb/src/nodeConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
2 changes: 1 addition & 1 deletion libs/xtsb/xcbgen/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/xtsb/xcbgen/ts_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
10 changes: 5 additions & 5 deletions libs/xtsb/xcbgen/xtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'''
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions sdk/sysrootlibs/jslibraries/library_unixsockfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -586,4 +586,4 @@
}

autoAddDeps(LibraryUnixSockFS, '$UNIXSOCKFS')
mergeInto(LibraryManager.library, LibraryUnixSockFS)
mergeInto(LibraryManager.library, LibraryUnixSockFS)

0 comments on commit c3758e0

Please sign in to comment.