File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -420,8 +420,9 @@ If an isolated surrogate is seen, the behavior determines on the
420
420
-> str:stringref
421
421
```
422
422
Return a substring of * ` view ` * , for the WTF-8 bytes starting at offset
423
- * ` start ` * and not greater than * ` end ` * . * ` start ` * and * ` end ` * receive
424
- the "WTF-8 position treatment", as for ` stringview_wtf8.advance ` .
423
+ * ` start ` * and continuing to but not including * ` end ` * . * ` start ` * and
424
+ * ` end ` * receive the "WTF-8 position treatment", as for
425
+ ` stringview_wtf8.advance ` .
425
426
426
427
### ` stringview_wtf16 `
427
428
@@ -464,8 +465,9 @@ transformation is the "WTF-16 position treatment".
464
465
-> str:stringref
465
466
```
466
467
Return a substring of * ` view ` * , for the WTF-16 code units starting at offset
467
- * ` start ` * and not greater than * ` end ` * . * ` start ` * and * ` end ` * receive
468
- the "WTF-16 position treatment", as for ` stringview_wtf16.encode ` .
468
+ * ` start ` * and continuing to but not including * ` end ` * . * ` start ` * and
469
+ * ` end ` * receive the "WTF-16 position treatment", as for
470
+ ` stringview_wtf16.encode ` .
469
471
470
472
### ` stringview_iter `
471
473
@@ -641,7 +643,9 @@ rather it just deals in WTF-16, as most source languages that expose
641
643
local.get $str
642
644
string.as_wtf16
643
645
local.get $offset
646
+ local.get $offset
644
647
local.get $codeunits
648
+ i32.add
645
649
stringview_wtf16.slice)
646
650
```
647
651
You can’t perform that action at this time.
0 commit comments