mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(span): correct doc comments (#3608)
Fix doc comments for `Span` methods. `Span` offsets are in bytes, not characters.
This commit is contained in:
parent
c95d691af6
commit
d65202d788
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ impl Span {
|
|||
Self { start: at, end: at }
|
||||
}
|
||||
|
||||
/// Create a new [`Span`] starting at `start` and covering `size` characters.
|
||||
/// Create a new [`Span`] starting at `start` and covering `size` bytes.
|
||||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
|
|
@ -88,7 +88,7 @@ impl Span {
|
|||
Self::new(start, start + size)
|
||||
}
|
||||
|
||||
/// Get the number of characters covered by the [`Span`].
|
||||
/// Get the number of bytes covered by the [`Span`].
|
||||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Reference in a new issue