mirror of https://github.com/stelzo/typst.git
Added precise definition for "character" in the docs for `str.split` (#5616)
This commit is contained in:
parent
3a1503154f
commit
ec1e8f9e8d
|
|
@ -577,9 +577,10 @@ impl Str {
|
|||
/// of the resulting parts.
|
||||
///
|
||||
/// When the empty string is used as a separator, it separates every
|
||||
/// character in the string, along with the beginning and end of the
|
||||
/// string. In practice, this means that the resulting list of parts
|
||||
/// will contain the empty string at the start and end of the list.
|
||||
/// character (i.e., Unicode code point) in the string, along with the
|
||||
/// beginning and end of the string. In practice, this means that the
|
||||
/// resulting list of parts will contain the empty string at the start
|
||||
/// and end of the list.
|
||||
#[func]
|
||||
pub fn split(
|
||||
&self,
|
||||
|
|
|
|||
Loading…
Reference in New Issue