doc: fix nth examples (#1768)

This commit is contained in:
Bruno Heridet 2020-05-12 22:47:45 +02:00 committed by GitHub
parent 75edcbc0d0
commit 803c6539eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,11 +44,11 @@ impl WholeStreamCommand for Nth {
&[
Example {
description: "Get the second row",
example: "echo [first second third] | get 1",
example: "echo [first second third] | nth 1",
},
Example {
description: "Get the first and third rows",
example: "echo [first second third] | get 0 2",
example: "echo [first second third] | nth 0 2",
},
]
}