Skip to content

Commit

Permalink
Merge pull request #141 from ferrous-systems/mittens-the-cat
Browse files Browse the repository at this point in the history
make "Mittens" as String
  • Loading branch information
jonathanpallant authored Feb 29, 2024
2 parents 4a5b5a5 + 00cc10d commit 783bad3
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 783bad3

Please sign in to comment.