Skip to content

Commit cd4c60a

Browse files
c-gitfdncred
andauthored
Fix minor typos in string manipulation section (#2123)
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
1 parent dae20bf commit cd4c60a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

book/working_with_strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ You can also use the [`run-external`](/commands/docs/run-external.md) command fo
180180

181181
## Appending and Prepending to strings
182182

183-
There are various ways to pre, or append strings. If you want to add something to the beginning of each string closures are a good option:
183+
There are various ways to prepend, or append strings. If you want to add something to the beginning of each string, closures are a good option:
184184

185185
```nu
186186
['foo', 'bar'] | each {|s| '~/' ++ $s} # ~/foo, ~/bar
@@ -194,7 +194,7 @@ You can also use a regex to replace the beginning or end of a string:
194194
['foo', 'bar'] | str replace -r '$' '~/'# foo~/, bar~/
195195
```
196196

197-
If you want to get one string out of the end then `str join` is your friend:
197+
If you want to combine a list into a string, then `str join` is your friend:
198198

199199
```nu
200200
"hello" | append "world!" | str join " " # hello world!

book/working_with_tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ $first | append $second
195195
# => ───┴───┴───
196196
```
197197

198-
If the column names are not identical then additionally columns and values will be created as necessary:
198+
If the column names are not identical then additional columns and values will be created as necessary:
199199

200200
```nu
201201
let first = [[a b]; [1 2]]

0 commit comments

Comments
 (0)