You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4837 Reporter: rdr Status: closed (set by @damiendoligez on 2011-05-31T14:17:18Z) Resolution: fixed Priority: normal Severity: trivial Version: 3.11.0 Fixed in version: 3.13.0+dev Category: documentation
Bug description
In 12.2.5 of the Ocaml Reference Manual lexeme_end is documented as returning:
"... the absolute position in the input text of
the end of the matched string."
The offset returned is actually of the first character past the matched string. This is correctly documented in the documentation for the Lexing module.
The text was updated successfully, but these errors were encountered:
Actually, positions are not character offsets, they lie between characters. The position of the end of the substring is indeed the offset of the next character after the substring, which is also the position of the start plus the length of the substring.
Still, we need to make the doc clearer about that.
Original bug ID: 4837
Reporter: rdr
Status: closed (set by @damiendoligez on 2011-05-31T14:17:18Z)
Resolution: fixed
Priority: normal
Severity: trivial
Version: 3.11.0
Fixed in version: 3.13.0+dev
Category: documentation
Bug description
In 12.2.5 of the Ocaml Reference Manual lexeme_end is documented as returning:
"... the absolute position in the input text of
the end of the matched string."
The offset returned is actually of the first character past the matched string. This is correctly documented in the documentation for the Lexing module.
The text was updated successfully, but these errors were encountered: