Skip to content

Commit

Permalink
Fix documentation reference for string.trim_space (#2217)
Browse files Browse the repository at this point in the history
  • Loading branch information
dehaansa authored Dec 4, 2024
1 parent cee4ab8 commit 61f2272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sources/reference/stdlib/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ If the string doesn't start with the prefix, the string is returned unchanged.
"hello"
```

## strings.trim_space
## string.trim_space

`strings.trim_space` removes any whitespace characters from the start and end of a string.
`string.trim_space` removes any whitespace characters from the start and end of a string.

### Examples

```alloy
> strings.trim_space(" hello\n\n")
> string.trim_space(" hello\n\n")
"hello"
```

0 comments on commit 61f2272

Please sign in to comment.