File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -219,14 +219,14 @@ local exampleDocMultiline(mid, ex) =
219
219
availableSince: '0.10.0' ,
220
220
description: html.paragraphs([
221
221
|||
222
- Returns a string that is the part of <code>s </code> that starts at offset <code>from</code>
223
- and is <code>len</code> codepoints long. If the string <code>s </code> is shorter than
222
+ Returns a string that is the part of <code>str </code> that starts at offset <code>from</code>
223
+ and is <code>len</code> codepoints long. If the string <code>str </code> is shorter than
224
224
<code>from+len</code>, the suffix starting at position <code>from</code> will be returned.
225
225
||| ,
226
226
|||
227
- The slice operator (e.g., <code>s [from:to]</code>) can also be used on strings, as an alternative
228
- to this function. However, note that the slice operator takes a start and an end index, but
229
- <code>std.substr</code> takes a start index and a length.
227
+ The slice operator (e.g., <code>str [from:to]</code>) can also be used on strings, as an
228
+ alternative to this function. However, note that the slice operator takes a start and an
229
+ end index, but <code>std.substr</code> takes a start index and a length.
230
230
||| ,
231
231
]),
232
232
},
Original file line number Diff line number Diff line change @@ -463,14 +463,14 @@ <h4 id="substr">
463
463
</ em >
464
464
</ p >
465
465
< p >
466
- Returns a string that is the part of < code > s </ code > that starts at offset < code > from</ code >
467
- and is < code > len</ code > codepoints long. If the string < code > s </ code > is shorter than
466
+ Returns a string that is the part of < code > str </ code > that starts at offset < code > from</ code >
467
+ and is < code > len</ code > codepoints long. If the string < code > str </ code > is shorter than
468
468
< code > from+len</ code > , the suffix starting at position < code > from</ code > will be returned.
469
469
</ p >
470
470
< p >
471
- The slice operator (e.g., < code > s [from:to]</ code > ) can also be used on strings, as an alternative
472
- to this function. However, note that the slice operator takes a start and an end index, but
473
- < code > std.substr</ code > takes a start index and a length.
471
+ The slice operator (e.g., < code > str [from:to]</ code > ) can also be used on strings, as an
472
+ alternative to this function. However, note that the slice operator takes a start and an
473
+ end index, but < code > std.substr</ code > takes a start index and a length.
474
474
</ p >
475
475
476
476
</ div >
You can’t perform that action at this time.
0 commit comments