From 8364e2714260fa3edbe60802a38c1b9f53a2efd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Proust?= Date: Wed, 14 Mar 2018 17:56:20 +0100 Subject: [PATCH] Data_encoding: typo in error message --- src/lib_data_encoding/data_encoding.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_data_encoding/data_encoding.ml b/src/lib_data_encoding/data_encoding.ml index dcdcdeec1..9efa4787e 100644 --- a/src/lib_data_encoding/data_encoding.ml +++ b/src/lib_data_encoding/data_encoding.ml @@ -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