Skip to content
Snippets Groups Projects
Commit 25c24bd3 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

correction typo

parent a8bd7b87
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -106,10 +106,10 @@ impl Animal for Chat { // le bloc où les méthodes du trait sont implémentées
fn main() {
let chien = Chien{ nom: String::from("Jack")};
println!("Le cri de {} est {}", chien.nom(), chien.cri());
println!("Le cri de {} est {}.", chien.nom(), chien.cri());
let chat = Chat{ nom: String::from("Rémy")};
println!("Le cri de {} est {}", chat.nom(), chat.cri());
println!("Le cri de {} est {}.", chat.nom(), chat.cri());
}
</code></pre>
......@@ -148,7 +148,7 @@ fn main() {
chien.cri(), chien.cri_puissant());
let chat = Chat{};
println!("Le cri du chat est {} et son cri puissant est {}".,
println!("Le cri du chat est {} et son cri puissant est {}.",
chat.cri(), chat.cri_puissant());
}
</code></pre>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment