mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
@ -95,7 +95,7 @@ fn main() {
|
||||
|
||||
for bird in birds {
|
||||
bird.quack();
|
||||
// when duck and swan turns into Bird, they all forgot how to fly, only remeber how to quack
|
||||
// when duck and swan turns into Bird, they all forgot how to fly, only remember how to quack
|
||||
// so, the below code will cause an error
|
||||
// bird.fly();
|
||||
}
|
||||
|
Reference in New Issue
Block a user