ocaml-community / zed

Abstract engine for text edition in OCaml
Other
121 stars 16 forks source link

`Zed_utf8.next_error`: raise `Zed_utf8.Out_of_bounds` in case of invalid offset. #52

Closed Lucccyo closed 1 year ago

Lucccyo commented 1 year ago

Zed_utf8.next_error string offset should fail with Zed_utf8.Out_of_bounds, when offset does not belong to a valid range (from 0 to string's length).

emillon commented 1 year ago

Looks good to me too.