diff options
author | Siri Hansen <[email protected]> | 2014-09-18 14:08:09 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2014-09-18 14:14:29 +0200 |
commit | cb834efd4d430936fd19ac2350d724010cc0dd01 (patch) | |
tree | d1a0e4f5934a0813e0df4cc22d43982dd28b37f3 /lib/stdlib/doc/src | |
parent | 743ed31108ee555db18d9833186865e85e34333e (diff) | |
download | otp-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/doc/src')
-rw-r--r-- | lib/stdlib/doc/src/string.xml | 6 |
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> |