Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

Commit 7f69a5a

Browse files
committed
Address a few typos;
1 parent 75b63c6 commit 7f69a5a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Diff for: README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ groups:
88
- [Value types](valuetypes.md) defines an extension to the core
99
proposal to support new kinds of values, akin to numbers and
1010
strings.
11-
- [SIMD](simd.md) defines how the proposed SIMD spec fits into all this.
1211
- [OO types](ootypes.md) defines an extension to allow
1312
typed objects to (more) accurately describe the kinds of
1413
things one can describe in Java or C#.
@@ -23,6 +22,6 @@ groups:
2322
exists on the design.
2423

2524

26-
## Interested?
25+
## Interested?
2726

2827
Join the IRC channel at #typed-objects on irc.mozilla.org (irc://irc.mozilla.org/typed-objects).

Diff for: core.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ definitions: either *primitive* or *struct type definitions*.
101101

102102
#### Options
103103

104-
Tje optional `options` parameter can influence certain aspects of a struct's semantics.
104+
The optional `options` parameter can influence certain aspects of a struct's semantics.
105105
Options are specified using fields on an object passed as the `options` parameter.
106106

107107
##### Option: defaults
@@ -358,7 +358,7 @@ throws a `TypeError`.
358358
## Assigning fields
359359

360360
When you assign to a field, the backing store is modified accordingly.
361-
As long as the rhs has the required structure, the process is precisely the same as when
361+
As long as the right hand side has the required structure, the process is precisely the same as when
362362
providing an initial value for a typed object. This means that you can write things like:
363363

364364
```js
@@ -382,7 +382,7 @@ line.to = {x: 22}; // Throws.
382382
The rationale for this behavior is that both alternatives - leaving absent fields
383383
unchanged or resetting them to their default values - are very likely to cover up
384384
subtle bugs. This is especially true when gradually converting an existing code base
385-
to using typed objects. OTOH, ignoring additional fields on the source object doesn't
385+
to using typed objects. On the other hand, ignoring additional fields on the source object doesn't
386386
have the same issues: all fields on the target instance are set to predictable values.
387387

388388
If a field has primitive type, then when it is assigned, the value is
@@ -410,7 +410,7 @@ adding a dynamic property to the instance. Essentially all struct type instances
410410
as though `Object.preventExtensions()` had been invoked on them.
411411

412412
*Rationale*: The canonicalization rules described
413-
[below](#canonicalization-of-typed-objects--equality) mean that structs don't have a way
413+
[below](#canonicalization-of-typed-objects-and-equality) mean that structs don't have a way
414414
to add dynamic properties to them: they would have to be associated with the starting
415415
offset of the struct in the underlying buffer because the struct itself is just a fat pointer
416416
to that location. Only for structs that are not embedded in other structs would it be

Diff for: valuetypes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ distinct sets of value types. This means you can freely add methods to
185185
value types that you define without fear of stomping on somebody
186186
else's value type.
187187

188-
On the other hand, if libraries with to interoperate, they can do so
188+
On the other hand, if libraries wish to interoperate, they can do so
189189
via the symbol registry. Similarly, value types that should be
190190
equivalent across realms can be achieved using the global symbol
191191
registry.

0 commit comments

Comments
 (0)