fix typo: 'assotiated' -> 'associated'

This commit is contained in:
chenhai
2023-08-05 20:44:36 +08:00
parent 88191e18b2
commit a7d22235eb
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ struct TrafficLight {
}
impl TrafficLight {
// 1. Implement an assotiated function `new`,
// 1. Implement an associated function `new`,
// 2. It will return a TrafficLight contains color "red"
// 3. Must use `Self`, DONT use `TrafficLight` in fn signatures or body
pub fn new()