Skip to content

Commit

Permalink
fix indentations
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4D5352 committed Dec 22, 2024
1 parent e06d5d5 commit 26d3218
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions book/working_with_records.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ To make a copy of a record with new fields, you can either:
```nu
let first_record = { name: "Sam", rank: 10 }
$first_record | merge { title: "Mayor" }
# => ╭───────┬───────╮
# => │ name │ Sam │
# => │ rank │ 10 │
# => │ title │ Mayor │
# => ╰───────┴───────╯
# => ╭───────┬───────╮
# => │ name │ Sam │
# => │ rank │ 10 │
# => │ title │ Mayor │
# => ╰───────┴───────╯
```

- Use the [spread operator](/book/operators#spread-operator) (`...`) to expand the first record inside a new record:
Expand Down

0 comments on commit 26d3218

Please sign in to comment.