mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Rename range
to slice
(#1014)
Followup for https://github.com/nushell/nushell/pull/14825
This commit is contained in:
parent
1f6ee6c86d
commit
fd686c0b0c
12 changed files with 29 additions and 29 deletions
|
@ -68,7 +68,7 @@ export def write-toc [file: path] {
|
|||
|
||||
let data = (
|
||||
$lines
|
||||
| range $content_start..
|
||||
| slice $content_start..
|
||||
| wrap line
|
||||
| insert level {
|
||||
get line | split chars | take while { $in == '#' } | length
|
||||
|
@ -128,7 +128,7 @@ export def write-toc [file: path] {
|
|||
}
|
||||
|
||||
[
|
||||
...($lines | range ..<$content_start)
|
||||
...($lines | slice ..<$content_start)
|
||||
...$table_of_contents
|
||||
...$content
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue