[erlang-patches] Fix re:split doc not to accept option 'global'

Shunichi Shinohara shino.shun@REDACTED
Sun Aug 21 04:26:48 CEST 2011


Hi,

I encountered  badarg error when using re:split with option 'global'.

Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2]
[async-threads:0] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
1> re:split("a;b;c", ";", [global]).
** exception error: bad argument
     in function  re:split/3
        called as re:split("a;b;c",";",[global])

Implementation of re:split does not accept global option,
and the document would be wrong.

git fetch git@REDACTED:shino/otp.git ss/re-split-doc-bug

https://github.com/shino/otp/compare/dev...ss%2Fre-split-doc-bug

Regards,

shino (Shunichi Shinohara)



More information about the erlang-patches mailing list