summaryrefslogtreecommitdiff
path: root/docs/std/string.md
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-23 01:54:51 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-23 01:54:51 +0000
commit98623f2fdd63232edf0ebab1b9680cf4e33e6f10 (patch)
tree46e05b4953ea873bc5e52339a333f7911fc22867 /docs/std/string.md
parent8cb7089b2eb09d40d9497cea40d088d94676a8c6 (diff)
More docs, and a few improvements for the standard library
Diffstat (limited to 'docs/std/string.md')
-rw-r--r--docs/std/string.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/std/string.md b/docs/std/string.md
index b83ee80..252b737 100644
--- a/docs/std/string.md
+++ b/docs/std/string.md
@@ -72,6 +72,8 @@ These methods handle UTF-8 character boundaries correctly, contrasting with the
| Method | Signature | Description |
| :--- | :--- | :--- |
| **split** | `split(self, delim: char) -> Vec<String>` | Splits the string into a vector of substrings separated by `delim`. |
+| **trim** | `trim(self) -> String` | Returns a new string with leading and trailing whitespace removed. |
+| **replace** | `replace(self, target: char*, replacement: char*) -> String` | Returns a new string with all occurrences of `target` replaced by `replacement`. |
### Comparison