Skip to content

Commit 1291af3

Browse files
[tests/proposals] Fix typos (#1769)
1 parent 39b7487 commit 1291af3

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

document/util/htmldiff.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# also requires the perl modules Getopt::Std
4949
#
5050
# NOTE: The markup created by htmldiff may not validate against the HTML 4.0
51-
# DTD. This is because the algorithm is realtively simple, and there are
51+
# DTD. This is because the algorithm is relatively simple, and there are
5252
# places in the markup content model where the span element is not allowed.
5353
# Htmldiff is NOT aware of these places.
5454
#

proposals/bulk-memory-operations/Overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The meaning of the bits of the flag field (a `varuint32`) for element segments i
228228
| 0 | 0=is active, 1=is passive |
229229
| 1 | if bit 0 clear: 0=table 0, 1=has table index |
230230
| | if bit 0 set: 0=active, 1=declared |
231-
| 2 | 0=carries indicies; 1=carries elemexprs |
231+
| 2 | 0=carries indices; 1=carries elemexprs |
232232

233233
which yields this view, with the fields carried by each flag value:
234234

@@ -356,7 +356,7 @@ The bounds check is performed before any data are written.
356356

357357
### `table.init`, `elem.drop`, and `table.copy` instructions
358358

359-
The `table.*` instructions behave similary to the `memory.*` instructions, with
359+
The `table.*` instructions behave similarly to the `memory.*` instructions, with
360360
the difference that they operate on element segments and tables, instead of
361361
data segments and memories. The offset and length operands of `table.init` and
362362
`table.copy` have element units instead of bytes as well.

proposals/multi-value/Overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- instructions: `value* -> value?`
1010
- blocks: `[] -> value?`
1111

12-
* In a stack machine, these asymmetries are artifical restrictions
12+
* In a stack machine, these asymmetries are artificial restrictions
1313
- were imposed to simplify the initial WebAssembly release (multiple results deferred to post-MVP)
1414
- can easily be lifted by generalising to value* -> value*
1515

@@ -32,7 +32,7 @@
3232
- loop labels can have arguments
3333
- can represent phis on backward edges
3434
- enable future `pick` operator to cross block boundary
35-
- macro definability of instructons with inputs
35+
- macro definability of instructions with inputs
3636
* `i32.select3` = `dup if ... else ... end`
3737

3838

proposals/reference-types/Overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ New/extended instructions:
9595
* The new instruction `table.fill` fills a range in a table with a value.
9696
- `table.fill $x : [i32 t i32] -> []`
9797
- iff `$x : table t`
98-
- the first operand is the start index of the range, the third operand its length (analoguous to `memory.fill`)
99-
- traps when range+length > size of the table, but only after filling range up to size (analoguous to `memory.fill`)
98+
- the first operand is the start index of the range, the third operand its length (analogous to `memory.fill`)
99+
- traps when range+length > size of the table, but only after filling range up to size (analogous to `memory.fill`)
100100

101101
* The `table.init` instruction takes an additional table index as immediate.
102102
- `table.init $x $y : [i32 i32 i32] -> []`

proposals/simd/SIMD.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ packed data in one instruction. These are commonly used to improve performance
1818
for multimedia applications. The set of SIMD instructions in hardware is large,
1919
and varies across different versions of hardware. This proposal is comprised
2020
of a portable subset of operations that in most cases map to commonly used
21-
instructions in mordern hardware.
21+
instructions in modern hardware.
2222

2323

2424
# Types
@@ -136,14 +136,14 @@ Accessing WebAssembly module imports or exports containing SIMD Type from JavaSc
136136

137137
### Module Function Imports
138138

139-
Calling an imported function from JavaScript when the function arguments or result is of type v128 will cause the host function to immidiately throw a [`TypeError`](https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-typeerror).
139+
Calling an imported function from JavaScript when the function arguments or result is of type v128 will cause the host function to immediately throw a [`TypeError`](https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-typeerror).
140140

141141
### Exported Function Exotic Objects
142142

143-
Invoking the [[Call]] method of an Exported Function Exotic Object when the function type of its [[Closure]] has an argument or result of type v128 will cause the host function to immidiately throw a [`TypeError`](https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-typeerror).
143+
Invoking the [[Call]] method of an Exported Function Exotic Object when the function type of its [[Closure]] has an argument or result of type v128 will cause the host function to immediately throw a [`TypeError`](https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-typeerror).
144144

145145

146-
## WebAssembly Module Instatiation
146+
## WebAssembly Module Instantiation
147147

148148
Instantiating a WebAssembly Module from a Module moduleObject will throw a LinkError exception, when the global's valtype is v128 and the imported objects type is not WebAssembly.Global.
149149

test/core/float_exprs.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,7 @@
19861986
(assert_return (invoke "f64.xkcd_better_sqrt_5" (f64.const 13.0) (f64.const 4.0) (f64.const 0x1.921fb54442d18p+1) (f64.const 24.0)) (f64.const 0x1.1e3778509a5a3p+1))
19871987

19881988
;; Compute the floating-point radix.
1989-
;; M. A. Malcom. Algorithms to reveal properties of floating-point arithmetic.
1989+
;; M. A. Malcolm. Algorithms to reveal properties of floating-point arithmetic.
19901990
;; Communications of the ACM, 15(11):949-951, November 1972.
19911991
(module
19921992
(func (export "f32.compute_radix") (param $0 f32) (param $1 f32) (result f32)

test/core/simd/simd_load.wast

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; v128.load operater with normal argument (e.g. (i8x16, i16x8 i32x4))
1+
;; v128.load operator with normal argument (e.g. (i8x16, i16x8 i32x4))
22

33
(module
44
(memory 1)
@@ -13,7 +13,7 @@
1313
(assert_return (invoke "v128.load") (v128.const i32x4 0x03020100 0x07060504 0x0b0a0908 0x0f0e0d0c))
1414

1515

16-
;; v128.load operater as the argument of other SIMD instructions
16+
;; v128.load operator as the argument of other SIMD instructions
1717

1818
(module (memory 1)
1919
(data (i32.const 0) "\00\01\02\03\04\05\06\07\08\09\0a\0b\0c\0d\0e\0f\00\01\02\03")
@@ -185,4 +185,4 @@
185185
(assert_invalid
186186
(module (memory 1) (func (drop (v128.load))))
187187
"type mismatch"
188-
)
188+
)

test/core/simd/simd_store.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; v128.store operater with normal argument (e.g. (i8x16, i16x8, i32x4, f32x4))
1+
;; v128.store operator with normal argument (e.g. (i8x16, i16x8, i32x4, f32x4))
22

33
(module
44
(memory 1)

test/core/utf8-custom-section-id.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"malformed UTF-8 encoding"
137137
)
138138

139-
;; byte after (first) 2-byte prefix not a contination byte
139+
;; byte after (first) 2-byte prefix not a continuation byte
140140
(assert_malformed
141141
(module binary
142142
"\00asm" "\01\00\00\00"

test/core/utf8-import-field.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
"malformed UTF-8 encoding"
202202
)
203203

204-
;; byte after (first) 2-byte prefix not a contination byte
204+
;; byte after (first) 2-byte prefix not a continuation byte
205205
(assert_malformed
206206
(module binary
207207
"\00asm" "\01\00\00\00"

0 commit comments

Comments
 (0)