Skip to content

Commit d04c309

Browse files
committed
Further WTF-16 byte order clarification
Fixes #15.
1 parent c5e8740 commit d04c309

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

proposals/stringref/Overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ Unicode standard, version 14.0.0, page 126.
228228
Create a new string from the *`codeunits`* code units encoded in memory at
229229
*`ptr`*. Out-of-bounds access will trap. *`ptr`* must be two-byte
230230
aligned, and will trap otherwise. The maximum value for *`codeunits`*
231-
is 2<sup>30</sup>–1; passing a higher value traps.
231+
is 2<sup>30</sup>–1; passing a higher value traps. Each code unit is
232+
read from memory as if with `i32.load16`, and are therefore decoded
233+
using little-endian byte order.
232234

233235
#### `string.new` size limits
234236

0 commit comments

Comments
 (0)