Skip to content

Commit

Permalink
Merge pull request #2362 from ayushmishra2005/remove_unnecessary_long…
Browse files Browse the repository at this point in the history
…_type_name_#1869

Unnecessarily long type name in Ch 13
  • Loading branch information
steveklabnik authored Jun 8, 2020
2 parents 48b9625 + 25389fe commit 30cd9df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion listings/ch13-functional-features/listing-13-26/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct Config {

// ANCHOR: here
impl Config {
pub fn new(mut args: std::env::Args) -> Result<Config, &'static str> {
pub fn new(mut args: env::Args) -> Result<Config, &'static str> {
// --snip--
// ANCHOR_END: here
if args.len() < 3 {
Expand Down
2 changes: 1 addition & 1 deletion listings/ch13-functional-features/listing-13-27/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct Config {

// ANCHOR: here
impl Config {
pub fn new(mut args: std::env::Args) -> Result<Config, &'static str> {
pub fn new(mut args: env::Args) -> Result<Config, &'static str> {
args.next();

let query = match args.next() {
Expand Down

0 comments on commit 30cd9df

Please sign in to comment.