Skip to content

Commit

Permalink
make "Mittens" as String
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed Feb 29, 2024
1 parent 4a5b5a5 commit 00cc10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training-slides/src/imports-and-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mod animals {

fn main() {
let c = animals::Cat::new("Mittens");
// let c = animals::Cat { name: "Mittens" };
// let c = animals::Cat { name: "Mittens".to_string() };
}
```

Expand All @@ -86,7 +86,7 @@ mod animals;

fn main() {
let c = animals::Cat::new("Mittens");
// let c = animals::Cat { name: "Mittens" };
// let c = animals::Cat { name: "Mittens".to_string() };
}
```

Expand Down

0 comments on commit 00cc10d

Please sign in to comment.