Skip to content

Commit d65202d

Browse files
fix(span): correct doc comments (#3608)
Fix doc comments for `Span` methods. `Span` offsets are in bytes, not characters.
1 parent c95d691 commit d65202d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/oxc_span/src/span.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl Span {
7474
Self { start: at, end: at }
7575
}
7676

77-
/// Create a new [`Span`] starting at `start` and covering `size` characters.
77+
/// Create a new [`Span`] starting at `start` and covering `size` bytes.
7878
///
7979
/// # Example
8080
/// ```
@@ -88,7 +88,7 @@ impl Span {
8888
Self::new(start, start + size)
8989
}
9090

91-
/// Get the number of characters covered by the [`Span`].
91+
/// Get the number of bytes covered by the [`Span`].
9292
///
9393
/// # Example
9494
/// ```

0 commit comments

Comments
 (0)