Skip to content

Commit 9389f8b

Browse files
authored
Update creating_errors.md to use $span variable directly in example (nushell#1679)
Use `$span` variable in `my-command` function definition from code example.
1 parent 065dba9 commit 9389f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/creating_errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def my-command [x] {
2828
msg: "this is fishy",
2929
label: {
3030
text: "fish right here",
31-
span: (metadata $x).span
31+
span: $span
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)