diff options
| author | Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> | 2025-01-06 16:15:11 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-06 13:15:11 +0000 |
| commit | ec1e8f9e8dce05d982782eeedeb497184658a8db (patch) | |
| tree | 9644a8eaab4d206be8e4e74c778b1a859a839510 | |
| parent | 3a1503154f1162b594d2b016fb19506d9eeaf51e (diff) | |
Added precise definition for "character" in the docs for `str.split` (#5616)
| -rw-r--r-- | crates/typst-library/src/foundations/str.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/typst-library/src/foundations/str.rs b/crates/typst-library/src/foundations/str.rs index 8ac99ac6..4025d1ab 100644 --- a/crates/typst-library/src/foundations/str.rs +++ b/crates/typst-library/src/foundations/str.rs @@ -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, |
