Skip to content

Commit 51f313d

Browse files
committed
docs(spansy): mention that quotes aren't captures in JSON string span
1 parent c1990bf commit 51f313d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spansy/src/json/types.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ pub struct Number(pub(crate) Span<str>);
229229

230230
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
231231
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
232-
/// A string value.
232+
/// A JSON string value.
233+
///
234+
/// This span does not capture the quotation marks around the string.
233235
pub struct String(pub(crate) Span<str>);
234236

235237
#[derive(Debug, Clone, PartialEq, Eq, Hash)]

0 commit comments

Comments
 (0)