mirror of
https://github.com/RustyCab/LearnRustEasy.git
synced 2026-02-04 10:43:22 +08:00
fix chapter 3.4 typos
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
/*
|
||||
* 块注释:
|
||||
* 函数名:sum
|
||||
* 参数: a,b
|
||||
* 返回值类型: u32
|
||||
* 参数:a,b
|
||||
* 返回值类型:u32
|
||||
*/
|
||||
fn sum(a: u32, b: u32) -> u32 {
|
||||
a + b
|
||||
@@ -99,4 +99,4 @@ cargo doc --open
|
||||
|
||||
将打开上面代码里面文档注释生成的文档,如下图:
|
||||
|
||||

|
||||

|
||||
|
||||
Reference in New Issue
Block a user