aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/lists.xml
diff options
context:
space:
mode:
authorCristian Greco <[email protected]>2010-09-03 22:34:26 +0200
committerBjörn Gustavsson <[email protected]>2010-09-06 11:27:27 +0200
commit731b8398e57f55459d4616b12775a3738517e2e5 (patch)
treedc0b8e3e860fea9bec09aaaf94628e9f0b97acc2 /lib/stdlib/doc/src/lists.xml
parent8f67f51105560f1c0e721117100cf20d0c6061c0 (diff)
downloadotp-731b8398e57f55459d4616b12775a3738517e2e5.tar.gz
otp-731b8398e57f55459d4616b12775a3738517e2e5.tar.bz2
otp-731b8398e57f55459d4616b12775a3738517e2e5.zip
Fix minor typos in the documentation
Diffstat (limited to 'lib/stdlib/doc/src/lists.xml')
-rw-r--r--lib/stdlib/doc/src/lists.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index b3ad7aaf46..92c4eb4f4c 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -220,7 +220,7 @@
follows:</p>
<code type="none">
flatmap(Fun, List1) ->
- append(map(Fun, List1))</code>
+ append(map(Fun, List1)).</code>
<p>Example:</p>
<pre>
> <input>lists:flatmap(fun(X)->[X,X] end, [a,b,c]).</input>
@@ -523,7 +523,7 @@ flatmap(Fun, List1) ->
<v>&nbsp;A = B = term()</v>
</type>
<desc>
- <p><c>mapfold</c> combines the operations of <c>map/2</c> and
+ <p><c>mapfoldl</c> combines the operations of <c>map/2</c> and
<c>foldl/3</c> into one pass. An example, summing
the elements in a list and double them at the same time:</p>
<pre>
@@ -543,7 +543,7 @@ flatmap(Fun, List1) ->
<v>&nbsp;A = B = term()</v>
</type>
<desc>
- <p><c>mapfold</c> combines the operations of <c>map/2</c> and
+ <p><c>mapfoldr</c> combines the operations of <c>map/2</c> and
<c>foldr/3</c> into one pass.</p>
</desc>
</func>