Update Number::from_i128 documentation regarding bounds

This commit is contained in:
David Tolnay 2024-10-18 09:27:30 -07:00
parent b4df0f8251
commit fb12a9db76
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -292,8 +292,9 @@ impl Number {
} }
} }
/// Converts an `i128` to a `Number`. Greater than u64::MAX values are not JSON /// Converts an `i128` to a `Number`. Numbers smaller than i64::MIN or
/// numbers. /// larger than u64::MAX can only be represented in `Number` if serde_json's
/// "arbitrary_precision" feature is enabled.
/// ///
/// ``` /// ```
/// # use serde_json::Number; /// # use serde_json::Number;