Skip to content

Commit 6a5fef9

Browse files
committed
Wrap as_number documentation to 80 columns
1 parent de39b2a commit 6a5fef9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/value/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ impl Value {
495495
}
496496
}
497497

498-
/// If the `Value` is an Number, returns the associated [`Number`]. Returns None
499-
/// otherwise.
498+
/// If the `Value` is an Number, returns the associated [`Number`]. Returns
499+
/// None otherwise.
500500
///
501501
/// ```
502502
/// # use serde_json::{json, Number};
@@ -509,7 +509,6 @@ impl Value {
509509
///
510510
/// // The string `"4"` is not a number.
511511
/// assert_eq!(v["d"].as_number(), None);
512-
///
513512
/// ```
514513
pub fn as_number(&self) -> Option<&Number> {
515514
match self {

0 commit comments

Comments
 (0)