Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/working_with_strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ You can also use the [`run-external`](/commands/docs/run-external.md) command fo

## Appending and Prepending to strings

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:
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:

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

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

```nu
"hello" | append "world!" | str join " " # hello world!
Expand Down
2 changes: 1 addition & 1 deletion book/working_with_tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ $first | append $second
# => ───┴───┴───
```

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

```nu
let first = [[a b]; [1 2]]
Expand Down