diff options
-rw-r--r-- | stdlib/int32.mli | 6 | ||||
-rw-r--r-- | stdlib/int64.mli | 6 | ||||
-rw-r--r-- | stdlib/pervasives.mli | 7 |
3 files changed, 10 insertions, 9 deletions
diff --git a/stdlib/int32.mli b/stdlib/int32.mli index 45414c6346..d14c287af6 100644 --- a/stdlib/int32.mli +++ b/stdlib/int32.mli @@ -128,9 +128,9 @@ external to_float : int32 -> float external of_string : string -> int32 = "caml_int32_of_string" (** Convert the given string to a 32-bit integer. - The string is read in decimal (by default) or in hexadecimal, - octal or binary if the string begins with [0x], [0o] or [0b] - respectively. + The string is read in decimal (by default, or if the string + begins with [0u]) or in hexadecimal, octal or binary if the + string begins with [0x], [0o] or [0b] respectively. Raise [Failure "Int32.of_string"] if the given string is not a valid representation of an integer, or if the integer represented exceeds the range of integers representable in type [int32]. *) diff --git a/stdlib/int64.mli b/stdlib/int64.mli index 96aeb81e13..b08fabd14b 100644 --- a/stdlib/int64.mli +++ b/stdlib/int64.mli @@ -150,9 +150,9 @@ external to_nativeint : int64 -> nativeint = "%int64_to_nativeint" external of_string : string -> int64 = "caml_int64_of_string" (** Convert the given string to a 64-bit integer. - The string is read in decimal (by default) or in hexadecimal, - octal or binary if the string begins with [0x], [0o] or [0b] - respectively. + The string is read in decimal (by default, or if the string + begins with [0u]) or in hexadecimal, octal or binary if the + string begins with [0x], [0o] or [0b] respectively. Raise [Failure "Int64.of_string"] if the given string is not a valid representation of an integer, or if the integer represented exceeds the range of integers representable in type [int64]. *) diff --git a/stdlib/pervasives.mli b/stdlib/pervasives.mli index c5af5c2a18..88553ed339 100644 --- a/stdlib/pervasives.mli +++ b/stdlib/pervasives.mli @@ -623,9 +623,10 @@ val string_of_int : int -> string external int_of_string : string -> int = "caml_int_of_string" (** Convert the given string to an integer. - The string is read in decimal (by default), in hexadecimal (if it - begins with [0x] or [0X]), in octal (if it begins with [0o] or [0O]), - or in binary (if it begins with [0b] or [0B]). + The string is read in decimal (by default, or if the string + begins with [0u]), in hexadecimal (if it begins with [0x] or + [0X]), in octal (if it begins with [0o] or [0O]), or in binary + (if it begins with [0b] or [0B]). The [_] (underscore) character can appear anywhere in the string and is ignored. Raise [Failure "int_of_string"] if the given string is not |