mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 07:21:29 +00:00
Update Number::from_i128 documentation regarding bounds
This commit is contained in:
parent
b4df0f8251
commit
fb12a9db76
@ -292,8 +292,9 @@ impl Number {
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts an `i128` to a `Number`. Greater than u64::MAX values are not JSON
|
||||
/// numbers.
|
||||
/// Converts an `i128` to a `Number`. Numbers smaller than i64::MIN or
|
||||
/// larger than u64::MAX can only be represented in `Number` if serde_json's
|
||||
/// "arbitrary_precision" feature is enabled.
|
||||
///
|
||||
/// ```
|
||||
/// # use serde_json::Number;
|
||||
|
Loading…
x
Reference in New Issue
Block a user