docs(spansy): mention that quotes aren't captures in JSON string span

This commit is contained in:
sinu
2024-02-08 13:47:41 -08:00
parent c1990bf811
commit 51f313d153

View File

@@ -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)]