aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-09-18 14:08:09 +0200
committerSiri Hansen <[email protected]>2014-09-18 14:14:29 +0200
commitcb834efd4d430936fd19ac2350d724010cc0dd01 (patch)
treed1a0e4f5934a0813e0df4cc22d43982dd28b37f3 /lib/stdlib
parent743ed31108ee555db18d9833186865e85e34333e (diff)
downloadotp-cb834efd4d430936fd19ac2350d724010cc0dd01.tar.gz
otp-cb834efd4d430936fd19ac2350d724010cc0dd01.tar.bz2
otp-cb834efd4d430936fd19ac2350d724010cc0dd01.zip
Add note about adjacent separator characters in string:tokens/2
Adjacent separator characters are treated as one in string:tokens/2. This was shown in the example in the reference manual but it was not written in words. A note about this is now added.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/doc/src/string.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/stdlib/doc/src/string.xml b/lib/stdlib/doc/src/string.xml
index c96cc95a44..b05d5cbc08 100644
--- a/lib/stdlib/doc/src/string.xml
+++ b/lib/stdlib/doc/src/string.xml
@@ -4,7 +4,7 @@
<erlref>
<header>
<copyright>
- <year>1996</year><year>2013</year>
+ <year>1996</year><year>2014</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
@@ -124,6 +124,10 @@
<code type="none">
> tokens("abc defxxghix jkl", "x ").
["abc", "def", "ghi", "jkl"] </code>
+ <p>Note that, as shown in the example above, two or more
+ adjacent separator characters in <c><anno>String</anno></c>
+ will be treated as one. That is, there will not be any empty
+ strings in the resulting list of tokens.</p>
</desc>
</func>
<func>