Data_encoding: typo in error message
This commit is contained in:
parent
2fbc60af75
commit
8364e27142
@ -1175,7 +1175,7 @@ module Binary = struct
|
|||||||
| RangedFloat { minimum ; maximum } ->
|
| RangedFloat { minimum ; maximum } ->
|
||||||
fun v ->
|
fun v ->
|
||||||
if v < minimum || v > maximum
|
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
|
float v
|
||||||
| Bytes (`Fixed n) -> fixed_kind_bytes n
|
| Bytes (`Fixed n) -> fixed_kind_bytes n
|
||||||
| String (`Fixed n) -> fixed_kind_string n
|
| String (`Fixed n) -> fixed_kind_string n
|
||||||
|
Loading…
Reference in New Issue
Block a user