From a7d22235eb14baa3e03c9fbf8e3f9125be82af4b Mon Sep 17 00:00:00 2001 From: chenhai <13051671277@163.com> Date: Sat, 5 Aug 2023 20:44:36 +0800 Subject: [PATCH] fix typo: 'assotiated' -> 'associated' --- en/src/method.md | 2 +- solutions/method.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/src/method.md b/en/src/method.md index 31047df..83392d7 100644 --- a/en/src/method.md +++ b/en/src/method.md @@ -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() diff --git a/solutions/method.md b/solutions/method.md index 8830a22..a068552 100644 --- a/solutions/method.md +++ b/solutions/method.md @@ -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 {