error in the example of binary:part/2 in the docs

Pablo Platt pablo.platt@REDACTED
Sat Jan 22 03:49:07 CET 2011


Couldn't find the actual place in github.
Maybe it is possible to validate the examples in the docs as valid erlang terms?

http://erldocs.com/R14B/stdlib/binary.html?i=38&search=bin#part/2

1> Bin = <<1,2,3,4,5,6,7,8,9,10>>. 2> binary:part(Bin,{byte_size(Bin), -5)). 
<<6,7,8,9,10>> 


in 2) should be } instead of )
binary:part(Bin,{byte_size(Bin), -5}).

Thanks



      


More information about the erlang-questions mailing list