From 17f14889db223a81fa601fe4c1a998b7b37aafc5 Mon Sep 17 00:00:00 2001 From: sinu <65924192+sinui0@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:47:04 -0800 Subject: [PATCH] doc(spansy): mention that quotes aren't captures in JSON string span --- spansy/src/json/types.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spansy/src/json/types.rs b/spansy/src/json/types.rs index ae1079a..489e73d 100644 --- a/spansy/src/json/types.rs +++ b/spansy/src/json/types.rs @@ -229,7 +229,9 @@ pub struct Number(pub(crate) Span); #[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); #[derive(Debug, Clone, PartialEq, Eq, Hash)]