Skip to content

Commit 8b202cb

Browse files
authored
A few typo fixes (#1716)
1 parent 5207693 commit 8b202cb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

book/custom_commands.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,10 @@ Because `def` is a parser keyword, the command name must be known at parse time.
270270
```nu
271271
let name = "foo"
272272
def $name [] { foo }
273-
:::
274273
```
275274

275+
:::
276+
276277
### Subcommands
277278

278279
You can also define subcommands of commands using a space. For example, if we wanted to add a new subcommand to [`str`](/commands/docs/str.md), we can create it by naming our subcommand starting with "str ". For example:

book/thinking_in_nu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ To make sure the first line is _displayed_, use the [`print` command](/commands/
134134

135135
```nu
136136
def latest-file [] {
137-
print "Returning last file"
138-
ls | sort-by modified | last
137+
print "Returning last file"
138+
ls | sort-by modified | last
139139
}
140140
```
141141

0 commit comments

Comments
 (0)