|
|
| Author |
Message |
|
| Guest |
Posted: Wed Jul 12, 2006 1:37 pm |
|
|
|
Guest
|
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
Post recived frommailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|