Skip to content

Commit c6ba1a2

Browse files
authored
Fix references to renamed range command (#2041)
Since nu 0.102.0, the range command has been renamed to slice. Two pages in the book still referenced the old command name (with corresponding broken hyperlinks).
1 parent b829dfd commit c6ba1a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

book/navigating_structured_data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,4 +344,4 @@ $with_default_value.1.a
344344
## Other commands for accessing structured data
345345

346346
- [`reject`](/commands/docs/reject.md) is the opposite of `select`, removing the specified rows and columns
347-
- [`range`](/commands/docs/range.md) specifies the rows of a list or table to select using a [`range`](./types_of_data.md#ranges) type
347+
- [`slice`](/commands/docs/slice.md) specifies the rows of a list or table to select using a [`range`](./types_of_data.md#ranges) type

book/nushell_map.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ The idea behind this table is to help you understand how Nu builtins and plugins
3737
| [`transpose`](/commands/docs/transpose.md) | `pivot` | | | |
3838
| [`ps`](/commands/docs/ps.md) | | | `Get-Process`, `ps`, `gps` | `ps` |
3939
| [`pwd`](/commands/docs/pwd.md) | | | `Get-Location`, `pwd` | `pwd` |
40-
| [`range` (command)](/commands/docs/range.md) | `limit x offset y`, `rownumber` | `ElementAt` | `[x]`, indexing operator, `ElementAt` | |
41-
| [`range` (type)](types_of_data.html#ranges) | | `Range` | `1..10`, `'a'..'f'` | |
40+
| [`range`](types_of_data.html#ranges) | | `Range` | `1..10`, `'a'..'f'` | |
4241
| [`reduce`](/commands/docs/reduce.md) | | `Aggregate` | | |
4342
| [`rename`](/commands/docs/rename.md) | | | `Rename-Item`, `ren`, `rni` | `mv` |
4443
| [`reverse`](/commands/docs/reverse.md) | | `Reverse` | `[Array]::Reverse($var)` | |
@@ -49,6 +48,7 @@ The idea behind this table is to help you understand how Nu builtins and plugins
4948
| [`skip`](/commands/docs/skip.md) | `where row_number()` | `Skip` | `Select-Object -Skip` | |
5049
| [`skip until`](/commands/docs/skip_until.md) | | `SkipWhile` | | |
5150
| [`skip while`](/commands/docs/skip_while.md) | | `SkipWhile` | | |
51+
| [`slice`](/commands/docs/slice.md) | `limit x offset y`, `rownumber` | `ElementAt` | `[x]`, indexing operator, `ElementAt` | |
5252
| [`sort-by`](/commands/docs/sort-by.md) | `order by` | `OrderBy`, `OrderByDescending`, `ThenBy`, `ThenByDescending` | `Sort-Object`, `sort` | `sort` |
5353
| [`str`](/commands/docs/str.md) | String functions | `String` class | `String` class | |
5454
| [`str join`](/commands/docs/str_join.md) | `concat_ws` | `Join` | `Join-String` | |

0 commit comments

Comments
 (0)