From b7dcc7ed2afb6b556dec01ec51bb6fce6737ccc3 Mon Sep 17 00:00:00 2001 From: Fardale Date: Fri, 22 May 2020 23:12:58 +0200 Subject: [PATCH] chore(int32): change order of definition --- src/core/CCInt32.mli | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/CCInt32.mli b/src/core/CCInt32.mli index 4c96ed30..9abc2634 100644 --- a/src/core/CCInt32.mli +++ b/src/core/CCInt32.mli @@ -155,6 +155,13 @@ val of_float : float -> t val to_string : t -> string (** [to_string x] returns the string representation of its argument [x], in signed decimal. *) +val of_string : string -> t option +(** [of_string s] is the safe version of {!of_string_exn}. + Like {!of_string_exn}, but return [None] instead of raising. *) + +val of_string_opt : string -> t option +(** [of_string_opt s] is an alias to {!of_string}. *) + val of_string_exn : string -> t (** [of_string_exn s] converts the given string [s] into a 32-bit integer. Alias to {!Int32.of_string}. @@ -173,13 +180,6 @@ val of_string_exn : string -> t a valid representation of an integer, or if the integer represented exceeds the range of integers representable in type [int32]. *) -val of_string : string -> t option -(** [of_string s] is the safe version of {!of_string_exn}. - Like {!of_string_exn}, but return [None] instead of raising. *) - -val of_string_opt : string -> t option -(** [of_string_opt s] is an alias to {!of_string}. *) - val to_string_binary : t -> string (** [to_string_binary x] returns the string representation of the integer [x], in binary. @since NEXT_RELEASE *)