Skip to content

Commit f5d89ed

Browse files
sbarzowskisparkprime
authored andcommitted
Update stale "available in upcoming release" notes in the docs.
1 parent f59758d commit f5d89ed

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

doc/ref/stdlib.html

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ <h4 id="substr">std.substr(s, from, len)</h4>
439439
<div class="panel">
440440
<p>
441441
Returns a string that is the part of <code>s</code> that starts at offset <code>from</code>
442-
and is <code>len</code> codepoints long. If the string <code>s</code> is shorter than
442+
and is <code>len</code> codepoints long. If the string <code>s</code> is shorter than
443443
<code>from+len</code>, the suffix starting at position <code>from</code> will be returned.
444444
</p>
445445
</div>
@@ -461,7 +461,7 @@ <h4 id="substr">std.findSubstr(pat, str)</h4>
461461
<div class="hgroup-inline">
462462
<div class="panel">
463463
<p>
464-
Returns an array that contains the indexes of all occurances of <code>pat</code> in
464+
Returns an array that contains the indexes of all occurances of <code>pat</code> in
465465
<code>str</code>.
466466
</p>
467467
</div>
@@ -868,7 +868,7 @@ <h4 id="parseJson">std.parseJson(str)</h4>
868868
<p>
869869
Parses a JSON string.
870870
</p>
871-
<em>Available in upcoming release.</em>
871+
<em>Available since version 0.13.0</em>
872872
<p>Example: <code>std.parseJson('{"foo": "bar"}')</code> yields <code>{"foo": "bar"}</code>.</p>
873873
</div>
874874
<div style="clear: both"></div>
@@ -879,7 +879,7 @@ <h4 id="parseJson">std.parseJson(str)</h4>
879879
<div class="hgroup-inline">
880880
<div class="panel">
881881
<h4 id="encodeUTF8">std.encodeUTF8(str)</h4>
882-
<em>Available in upcoming release.</em>
882+
<em>Available since version 0.13.0</em>
883883
<p>
884884
Encode a string using <a href="https://en.wikipedia.org/wiki/UTF-8">UTF8</a>. Returns an array of numbers representing bytes.
885885
</p>
@@ -900,7 +900,7 @@ <h4 id="decodeUTF8">std.decodeUTF8(arr)</h4>
900900
<div class="hgroup">
901901
<div class="hgroup-inline">
902902
<div class="panel">
903-
<em>Available in upcoming release.</em>
903+
<em>Available since version 0.13.0</em>
904904
<p>
905905
Decode an array of numbers representing bytes using <a href="https://en.wikipedia.org/wiki/UTF-8">UTF8</a>. Returns a string.
906906
</p>
@@ -1123,7 +1123,7 @@ <h4 id="manifestYamlDoc">std.manifestYamlDoc(value)</h4>
11231123

11241124
<p>Yields a string containing this YAML:</p>
11251125

1126-
<pre>"x":
1126+
<pre>"x":
11271127
- 1
11281128
- 2
11291129
- 3
@@ -1133,10 +1133,10 @@ <h4 id="manifestYamlDoc">std.manifestYamlDoc(value)</h4>
11331133
- |
11341134
string
11351135
string
1136-
"y":
1136+
"y":
11371137
"a": 1
11381138
"b": 2
1139-
"c":
1139+
"c":
11401140
- 1
11411141
- 2</pre>
11421142

@@ -1230,8 +1230,8 @@ <h4 id="manifestXmlJsonml">std.manifestXmlJsonml(value)</h4>
12301230
</p>
12311231
<svg height="100" width="100">
12321232
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
1233-
Sorry, your browser does not support inline SVG.
1234-
</svg>
1233+
Sorry, your browser does not support inline SVG.
1234+
</svg>
12351235
<p>
12361236
JsonML is designed to preserve "mixed-mode content" (i.e., textual data outside of or next
12371237
to elements). This includes the whitespace needed to avoid having all the XML on one line,
@@ -1324,7 +1324,7 @@ <h4 id="count">std.find(value, arr)</h4>
13241324
<div class="hgroup-inline">
13251325
<div class="panel">
13261326
<p>
1327-
Returns an array that contains the indexes of all occurances of <code>value</code> in
1327+
Returns an array that contains the indexes of all occurances of <code>value</code> in
13281328
<code>arr</code>.
13291329
</p>
13301330
</div>
@@ -1550,6 +1550,9 @@ <h4 id="flattenArrays">std.flattenArrays(arrs)</h4>
15501550
<div class="hgroup-inline">
15511551
<div class="panel">
15521552
<p>Concatenate an array of arrays into a single array.</p>
1553+
<p>
1554+
Example: <code>std.flattenArrays([[1, 2], [3, 4], [[5, 6], [7, 8]]])</code> yields <code>[1, 2, 3, 4, [5, 6], [7, 8]]</code>.
1555+
</p>
15531556
</div>
15541557
<div style="clear: both"></div>
15551558
</div>
@@ -1559,7 +1562,7 @@ <h4 id="flattenArrays">std.flattenArrays(arrs)</h4>
15591562
<div class="hgroup-inline">
15601563
<div class="panel">
15611564
<h4 id="sort">std.reverse(arr)</h4>
1562-
1565+
15631566
</div>
15641567
<div style="clear: both"></div>
15651568
</div>
@@ -1569,7 +1572,7 @@ <h4 id="sort">std.reverse(arr)</h4>
15691572
<div class="hgroup-inline">
15701573
<div class="panel">
15711574
<p>Reverses an array.</p>
1572-
<em>Available in upcoming release.</em>
1575+
<em>Available since version 0.13.0</em>
15731576
</div>
15741577
<div style="clear: both"></div>
15751578
</div>
@@ -1932,4 +1935,3 @@ <h4 id="trace">std.trace(str, rest)</h4>
19321935
<div style="clear: both"></div>
19331936
</div>
19341937
</div>
1935-

0 commit comments

Comments
 (0)