diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-16 06:48:05 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 06:41:55 +0200 |
commit | 66213ffb859e0f66c973e315c91f53e519edaa16 (patch) | |
tree | b157d2166e2ff8d326a70c27c6027a8c5880e40c | |
parent | 62746da74a410195fdd36492eb15ca2d95531993 (diff) |
fix(docs): Span is a byte range (not character range)
-rw-r--r-- | src/spans.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spans.rs b/src/spans.rs index 88d5eed..ee63dd3 100644 --- a/src/spans.rs +++ b/src/spans.rs @@ -34,7 +34,7 @@ impl<R> GetPos for PosTracker<R> { } } -/// Represents a character range in the source code. +/// A byte range in the source code. pub trait Span<R>: Default + Clone { /// Initializes a new span at the current position of the reader. fn from_reader(reader: &R) -> Self; |