mirror of
https://github.com/typst/typst
synced 2025-05-16 18:15:29 +08:00
fix(array.slice): Clarify and correct function description (#4446)
This commit is contained in:
parent
aefc506424
commit
728fb7e475
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user