aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-09-22 10:59:07 +0200
committerSiri Hansen <[email protected]>2014-09-22 10:59:07 +0200
commitca4f18a59f37f80f7dfa6e1d6d6ba7bb453d1131 (patch)
tree4c82b41caf641422da044f5466047e08cb6583c8 /lib
parent6ec976bd70a657efea2d5d714e0d470aeb86bb50 (diff)
parentcb834efd4d430936fd19ac2350d724010cc0dd01 (diff)
downloadotp-ca4f18a59f37f80f7dfa6e1d6d6ba7bb453d1131.tar.gz
otp-ca4f18a59f37f80f7dfa6e1d6d6ba7bb453d1131.tar.bz2
otp-ca4f18a59f37f80f7dfa6e1d6d6ba7bb453d1131.zip
Merge branch 'siri/string-tokens-doc/OTP-12036' into maint
* siri/string-tokens-doc/OTP-12036: Add note about adjacent separator characters in string:tokens/2
Diffstat (limited to 'lib')
-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>