Skip to content

Commit

Permalink
Fix a typo in code comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Somoku authored Aug 25, 2022
1 parent e7b4b02 commit 8a88a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zh-CN/src/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Pair {
fn main() {
let rectangle = Rectangle {
// 关联函数的调用不是通过点操作符,而是使用 `::~
// 关联函数的调用不是通过点操作符,而是使用 `::`
p1: Point::origin(),
p2: Point::new(3.0, 4.0),
};
Expand Down Expand Up @@ -258,4 +258,4 @@ fn main() {
@todo


> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/method.md)找到答案(在 solutions 路径下)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/method.md)找到答案(在 solutions 路径下)

0 comments on commit 8a88a51

Please sign in to comment.