From 0b56c7e87646fe6e2f7e23ca507dc5fdd68518c2 Mon Sep 17 00:00:00 2001 From: Annlix Date: Tue, 12 Oct 2021 09:25:21 +0800 Subject: [PATCH] Fixed an error in ch03-01 Fixed an error in ch03-01 --- src/ch03-01-variables-and-mutability.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch03-01-variables-and-mutability.md b/src/ch03-01-variables-and-mutability.md index 85046bb..027db33 100644 --- a/src/ch03-01-variables-and-mutability.md +++ b/src/ch03-01-variables-and-mutability.md @@ -96,7 +96,7 @@ The value of x is: 6 最后一个区别是,常量只能被设置为常量表达式,而不可以是其他任何只能在运行时计算出的值。 -下面是一个声明常量的例子,常量的名称是 `HREE_HOURS_IN_SECONDS`,它的值被设置为 60(一分钟内的秒数)乘以 60(一小时内的分钟数)再乘以 3(我们在这个程序中要计算的小时数)的结果: +下面是一个声明常量的例子,常量的名称是 `THREE_HOURS_IN_SECONDS`,它的值被设置为 60(一分钟内的秒数)乘以 60(一小时内的分钟数)再乘以 3(我们在这个程序中要计算的小时数)的结果: ```rust const THREE_HOURS_IN_SECONDS: u32 = 60 * 60 * 3; @@ -180,4 +180,4 @@ To learn more, run the command again with --verbose. [comparing-the-guess-to-the-secret-number]:ch02-00-guessing-game-tutorial.html#比较猜测的数字和秘密数字 [data-types]: ch03-02-data-types.html#数据类型 [storing-values-with-variables]: ch02-00-guessing-game-tutorial.html#使用变量储存值 -[const-eval]: https://doc.rust-lang.org/reference/const_eval.html \ No newline at end of file +[const-eval]: https://doc.rust-lang.org/reference/const_eval.html