[erlang-questions] doc: error in the example for bit string comprehension
Wed Dec 5 18:25:23 CET 2007
The example given in 6.23 of the Erlang Reference Manual in R12B-0 reads :
1> *<< << X*2 >> ||
<<X>> <= << 1,2,3 >> >>.*
But it gives the error : * 1: syntax error before: '*'
It seems that the parenthesis around X*2 were ommited
1> << << (X*2) >> || <<X>> <= << 1,2,3 >> >>.
works as expected.
Many thanx to the OTP team for this new release!
More information about the erlang-questions