Skip to content

Commit 1a1ad55

Browse files
authored
fix typo (#1949)
1 parent 318cb70 commit 1a1ad55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/sorting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ $items | sort
100100
# => ╰───┴─────┴──────────┴───────╯
101101
```
102102

103-
In this example, the `id` column for all items is equal. Then, the two items with price `5` are sorted before the item with price `10`. Finally, the `item` with quantity `1` is sorted before the item with quantity `8`.
103+
In this example, the `id` column for all items is equal. Then, the two items with quantity `5` are sorted before the item with quantity `10`. Finally, the `item` with price `1` is sorted before the item with price `8`.
104104

105105
## Sorting structured data
106106

@@ -354,7 +354,7 @@ $compatible | sort-by -c {|a, b| $a < $b | default ($a != null) }
354354
# => ╰───┴──────╯
355355
$incompatible | sort-by -c {|a, b| $a < $b | default ($a != null) }
356356
# => Error: nu::shell::type_mismatch
357-
# =>
357+
# =>
358358
# => × Type mismatch during operation.
359359
# => ╭─[entry #26:1:36]
360360
# => 1 │ $incompatible | sort-by -c {|a, b| $a < $b | default ($a != null) }

0 commit comments

Comments
 (0)