Skip to content

Commit

Permalink
Fix broken English in Spanned documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themayu committed Feb 15, 2023
1 parent 9aae5b4 commit 655c8d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 655c8d6

Please sign in to comment.