aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src/erlang.xml
diff options
context:
space:
mode:
authorAleksey Yeschenko <[email protected]>2009-12-08 04:11:02 +0200
committerAleksey Yeschenko <[email protected]>2009-12-08 04:11:02 +0200
commit1556a6af97ebcf0bc47d3d2ac7e7ee6781507019 (patch)
treed56f9609223073ac6c88de77db3d17a23e52889b /erts/doc/src/erlang.xml
parentee51ffa886cdbc7a577d6e068236c107f0137696 (diff)
downloadotp-1556a6af97ebcf0bc47d3d2ac7e7ee6781507019.tar.gz
otp-1556a6af97ebcf0bc47d3d2ac7e7ee6781507019.tar.bz2
otp-1556a6af97ebcf0bc47d3d2ac7e7ee6781507019.zip
documentation: Fix erlang:split_binary/2 Pos argument
The correct value for the second argument to erlang:split_binary/2 (Pos) is 0, not 1.
Diffstat (limited to 'erts/doc/src/erlang.xml')
-rw-r--r--erts/doc/src/erlang.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index fd4447009a..3f54d0a6f9 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -4641,7 +4641,7 @@ true</pre>
<fsummary>Split a binary into two</fsummary>
<type>
<v>Bin = Bin1 = Bin2 = binary()</v>
- <v>Pos = 1..byte_size(Bin)</v>
+ <v>Pos = 0..byte_size(Bin)</v>
</type>
<desc>
<p>Returns a tuple containing the binaries which are the result