From 1556a6af97ebcf0bc47d3d2ac7e7ee6781507019 Mon Sep 17 00:00:00 2001 From: Aleksey Yeschenko Date: Tue, 8 Dec 2009 04:11:02 +0200 Subject: 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. --- erts/doc/src/erlang.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'erts/doc') 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 Split a binary into two Bin = Bin1 = Bin2 = binary() - Pos = 1..byte_size(Bin) + Pos = 0..byte_size(Bin)

Returns a tuple containing the binaries which are the result -- cgit v1.2.3