diff options
author | Jeremy Yallop <yallop@gmail.com> | 2017-06-09 20:28:57 +0100 |
---|---|---|
committer | Jeremy Yallop <yallop@gmail.com> | 2017-06-09 20:33:13 +0100 |
commit | 7f174bdb8f62af224f958b761691e26eb9de75ad (patch) | |
tree | 369b9fe796c5ffbd774a22013941b860067f6ccd /stdlib/int32.mli | |
parent | cb836654a8f1257534c799c008a430a2634c6dde (diff) | |
download | ocaml-7f174bdb8f62af224f958b761691e26eb9de75ad.tar.gz |
Int(32|64).of_string and int_of_string: document the 0u prefix.
Diffstat (limited to 'stdlib/int32.mli')
-rw-r--r-- | stdlib/int32.mli | 6 |
1 files changed, 3 insertions, 3 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]. *) |