Skip to content

Commit 25ca1c1

Browse files
Juhan280fdncred
andauthored
Update metadata set example of the book (#2146)
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
1 parent 1ec5398 commit 25ca1c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

book/metadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ The span "start" and "end" here refer to where the underline will be in the line
4040

4141
## Custom Metadata
4242

43-
You can attach arbitrary metadata to pipeline data using the [`metadata set`](/commands/docs/metadata_set.md) command with the `--merge` flag:
43+
You can attach arbitrary metadata to pipeline data using the [`metadata set`](/commands/docs/metadata_set.md) command with the optional closure parameter:
4444

4545
```nu
46-
"data" | metadata set --merge {custom_key: "custom_value"}
46+
"data" | metadata set { merge {custom_key: "custom_value"} }
4747
```
4848

4949
## HTTP Response Metadata

book/special_variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The `$nu` constant is a record containing several useful values:
2626
- `cache-dir`: A directory for non-essential (cached) data.
2727
- `vendor-autoload-dirs`: A list of directories where third-party applications should install configuration files that will be auto-loaded during startup.
2828
- `user-autoload-dirs`: A list of directories where the user may create additional configuration files which will be auto-loaded during startup.
29-
- `temp-dir`: A path for temporary files that should be writeable by the user.
29+
- `temp-dir`: A path for temporary files that should be writable by the user.
3030
- `pid`: The PID of the currently running Nushell process.
3131
- `os-info`: Information about the host operating system.
3232
- `startup-time`: The amount of time (in duration) that it took for Nushell to start and process all configuration files.

0 commit comments

Comments
 (0)