From 655c8d64e2da10bf24e3b412a92980003b1fcd28 Mon Sep 17 00:00:00 2001 From: Jamie Ridding Date: Wed, 15 Feb 2023 07:32:33 +0000 Subject: [PATCH] Fix broken English in `Spanned` documentation. --- src/events/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/mod.rs b/src/events/mod.rs index 2e5fa611..dcb7c953 100644 --- a/src/events/mod.rs +++ b/src/events/mod.rs @@ -53,13 +53,13 @@ use crate::reader::Span; use crate::utils::write_cow_string; use attributes::{Attribute, Attributes}; -/// A trait for get a span information +/// A trait for acquiring the start and end locations of a parsing event in an input #[cfg(feature = "span")] pub trait Spanned { - /// Returns a span that type is occupied in the input + /// Returns a span over the location of a parsing event fn span(&self) -> Span; - /// Sets the span of this holder to a given value + /// Sets the span of this parsing event to a given value fn with_span(self, span: Span) -> Self; }