mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 20:49:41 +00:00
Fix a typo in code comment.
This commit is contained in:
@ -73,7 +73,7 @@ impl Pair {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rectangle = Rectangle {
|
let rectangle = Rectangle {
|
||||||
// 关联函数的调用不是通过点操作符,而是使用 `::~
|
// 关联函数的调用不是通过点操作符,而是使用 `::`
|
||||||
p1: Point::origin(),
|
p1: Point::origin(),
|
||||||
p2: Point::new(3.0, 4.0),
|
p2: Point::new(3.0, 4.0),
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user