diff --git a/crates/typst/src/foundations/array.rs b/crates/typst/src/foundations/array.rs index 2caefc133..bd7e7bca4 100644 --- a/crates/typst/src/foundations/array.rs +++ b/crates/typst/src/foundations/array.rs @@ -259,7 +259,7 @@ impl Array { .ok_or_else(|| out_of_bounds_no_default(index, self.len())) } - /// Extracts a subslice of the array. Fails with an error if the start or + /// Extracts a subslice of the array. Fails with an error if the start or end /// index is out of bounds. #[func] pub fn slice( diff --git a/crates/typst/src/foundations/bytes.rs b/crates/typst/src/foundations/bytes.rs index 1e7958595..5b77aa2a6 100644 --- a/crates/typst/src/foundations/bytes.rs +++ b/crates/typst/src/foundations/bytes.rs @@ -127,7 +127,7 @@ impl Bytes { .ok_or_else(|| out_of_bounds_no_default(index, self.len())) } - /// Extracts a subslice of the bytes. Fails with an error if the start or + /// Extracts a subslice of the bytes. Fails with an error if the start or end /// index is out of bounds. #[func] pub fn slice(