From 6a5fef919092c11a9a4eb827ac51001761795fe0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 9 Sep 2023 12:02:13 -0700 Subject: [PATCH] Wrap as_number documentation to 80 columns --- src/value/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/value/mod.rs b/src/value/mod.rs index d8946506e..4f1d4878e 100644 --- a/src/value/mod.rs +++ b/src/value/mod.rs @@ -495,8 +495,8 @@ impl Value { } } - /// If the `Value` is an Number, returns the associated [`Number`]. Returns None - /// otherwise. + /// If the `Value` is an Number, returns the associated [`Number`]. Returns + /// None otherwise. /// /// ``` /// # use serde_json::{json, Number}; @@ -509,7 +509,6 @@ impl Value { /// /// // The string `"4"` is not a number. /// assert_eq!(v["d"].as_number(), None); - /// /// ``` pub fn as_number(&self) -> Option<&Number> { match self {