Data_encoding: typo in error message

This commit is contained in:
Raphaël Proust 2018-03-14 17:56:20 +01:00 committed by Benjamin Canou
parent 2fbc60af75
commit 8364e27142

View File

@ -1175,7 +1175,7 @@ module Binary = struct
| RangedFloat { minimum ; maximum } ->
fun v ->
if v < minimum || v > maximum
then invalid_arg (Printf.sprintf "Integer %f not in range [%f, %f]." v minimum maximum) ;
then invalid_arg (Printf.sprintf "Float %f not in range [%f, %f]." v minimum maximum) ;
float v
| Bytes (`Fixed n) -> fixed_kind_bytes n
| String (`Fixed n) -> fixed_kind_string n