fix(🐞): typo

pull/872/head
草鞋没号 3 years ago committed by GitHub
parent c68975f1ce
commit 0e8bdf0e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,7 @@ struct Circle {
} }
impl Circle { impl Circle {
// new是Circle的关联函数它的第一个参数不是self // new是Circle的关联函数它的第一个参数不是self
// 这种方法往往用于初始化当前结构体的实例 // 这种方法往往用于初始化当前结构体的实例
fn new(x: f64, y: f64, radius: f64) -> Circle { fn new(x: f64, y: f64, radius: f64) -> Circle {
Circle { Circle {

Loading…
Cancel
Save