mirror of https://github.com/stelzo/typst.git
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…
Reference in New Issue