From 803c6539ebe0a5c02322b2ff7cc30411c6284b71 Mon Sep 17 00:00:00 2001 From: Bruno Heridet Date: Tue, 12 May 2020 22:47:45 +0200 Subject: [PATCH] doc: fix nth examples (#1768) --- crates/nu-cli/src/commands/nth.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/commands/nth.rs b/crates/nu-cli/src/commands/nth.rs index e1be09c834..60cd6e6d01 100644 --- a/crates/nu-cli/src/commands/nth.rs +++ b/crates/nu-cli/src/commands/nth.rs @@ -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", }, ] }