aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-16 06:48:05 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 06:41:55 +0200
commit66213ffb859e0f66c973e315c91f53e519edaa16 (patch)
treeb157d2166e2ff8d326a70c27c6027a8c5880e40c /src
parent62746da74a410195fdd36492eb15ca2d95531993 (diff)
fix(docs): Span is a byte range (not character range)
Diffstat (limited to 'src')
-rw-r--r--src/spans.rs2
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;