Skip to content

Commit

Permalink
doc(spansy): mention that quotes aren't captures in JSON string span
Browse files Browse the repository at this point in the history
  • Loading branch information
sinui0 committed Feb 8, 2024
1 parent c1990bf commit 17f1488
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spansy/src/json/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ pub struct Number(pub(crate) Span<str>);

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

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

0 comments on commit 17f1488

Please sign in to comment.