small documentation buglets
Tamas Szilagyi
tamas.szilagyi@REDACTED
Wed Jul 12 15:28:50 CEST 2006
Hi,
After reading through the Programming Examples page of the
Erlang/OTP R11B docs I found the following issues. These
are really small indeed, however I thought I'd report them.
Please forgive me if any of these counts as nitpicking (I'm
relatively new to the Erlang world).
2. Funs / 2.3. The Syntax of Funs
In the code after "To check whether a term is a fun..." :
* "when function(F)" should be "when is_function(F)"
* "when integer(N)" should be "when is_integer(N)"
2. Funs / 2.5.4 foreach
In reality the shown code example outputs
1
2
3
4
ok
instead of the output shown in the document which is:
1
2
3
4
true
In conjunction with this, I'm not sure if it's OK to have
void() specified as the return value of lists:foreach/2
in the STDLIB/lists reference. Shouldn't it be ok instead
of void()?
4. Bit syntax / 4.2 A Lexical Note
Note that "B=<<1>>" will be interpreted as "B =< ;<1>>"
should be
Note that "B=<<1>>" will be interpreted as "B =< <1>>"
4. Bit syntax / 4.6 Matching Binaries
In the 2nd paragraph one instance of the word "binary" should
be removed from:
"There can be zero or more segments in a binary binary pattern."
Regards,
/Tom
More information about the erlang-bugs
mailing list