diff --git a/second-edition/src/ch12-01-accepting-command-line-arguments.md b/second-edition/src/ch12-01-accepting-command-line-arguments.md index 440b77227..103d29011 100644 --- a/second-edition/src/ch12-01-accepting-command-line-arguments.md +++ b/second-edition/src/ch12-01-accepting-command-line-arguments.md @@ -51,8 +51,8 @@ fn main() { } ``` -Listing 12-1: Collect the command line arguments into a vector and print them -out +Listing 12-1: Collect the command line arguments into +a vector and print them out First, we bring the `std::env` module into scope with a `use` statement so that we can use its `args` function. Notice the `std::env::args` function is nested @@ -124,7 +124,8 @@ fn main() { } ``` -Listing 12-2: Create variables to hold the query argument and filename argument +Listing 12-2: Create variables to hold the query argument +and filename argument As we saw when we printed out the vector, the program’s name takes up the first value in the vector at `args[0]`, so that we’re starting at index `1`. The