aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-12-14 08:56:30 +0100
committerLukas Larsson <[email protected]>2018-12-14 08:56:30 +0100
commitd2602d435638a4db13d8cd6f454995c23ceaad65 (patch)
tree48ac04443e3c65a557aa75aa5c9f4d1f549a3502
parenta5d4caa2ac1e3b3dc7b4dd535c0e485196b0a1c2 (diff)
parentf191f67b98c3efeef08045b212472ed9af1f0d7b (diff)
downloadotp-d2602d435638a4db13d8cd6f454995c23ceaad65.tar.gz
otp-d2602d435638a4db13d8cd6f454995c23ceaad65.tar.bz2
otp-d2602d435638a4db13d8cd6f454995c23ceaad65.zip
Merge branch 'maint'
-rw-r--r--lib/stdlib/doc/src/maps.xml30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/stdlib/doc/src/maps.xml b/lib/stdlib/doc/src/maps.xml
index c68c89618f..8e88882b56 100644
--- a/lib/stdlib/doc/src/maps.xml
+++ b/lib/stdlib/doc/src/maps.xml
@@ -207,12 +207,12 @@ false</code>
<code type="none">
> M = #{ a => 1, b => 2 }.
#{a => 1,b => 2}
-> I = maps:iterator(M).
-[{a,1},{b,2}]
-> {K1, V1, I2} = maps:next(I).
-{a,1,[{b,2}]}
-> {K2, V2, I3} = maps:next(I2).
-{b,2,[]}
+> I = maps:iterator(M), ok.
+ok
+> {K1, V1, I2} = maps:next(I), {K1, V1}.
+{a,1}
+> {K2, V2, I3} = maps:next(I2),{K2, V2}.
+{b,2}
> maps:next(I3).
none</code>
</desc>
@@ -304,15 +304,15 @@ none</code>
<code type="none">
> Map = #{a => 1, b => 2, c => 3}.
#{a => 1,b => 2,c => 3}
-> Iter = maps:iterator(Map).
-[{a,1},{b,2},{c,3}]
-> {_, _, Iter1} = maps:next(Iter).
-{a,1,[{b,2},{c,3}]}
-> {_, _, Iter2} = maps:next(Iter1).
-{b,2,[{c,3}]}
-> {_, _, Iter3} = maps:next(Iter2).
-{c,3,[]}
-> maps:next(Iter3).
+> I = maps:iterator(Map), ok.
+ok
+> {K1, V1, I1} = maps:next(I), {K1, V1}.
+{a,1}
+> {K2, V2, I2} = maps:next(I1), {K2, V2}.
+{b,2}
+> {K3, V3, I3} = maps:next(I2), {K3, V3}.
+{c,3}
+> maps:next(I3).
none</code>
</desc>
</func>