Merge pull request #434 from maorit/fix_type_method

fix typo: 'assotiated' -> 'associated'
This commit is contained in:
Sunface
2023-08-11 10:55:02 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ struct TrafficLight {
}
impl TrafficLight {
// 1. implement a assotiated function `new`,
// 1. implement a associated function `new`,
// 2. it will return a TrafficLight contains color "red"
// 3. must use `Self`, DONT use `TrafficLight`
pub fn new() -> Self {