From b96bcc0b22e9222e7eda98cf5a6a9578effa0041 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sun, 11 Jun 2023 14:43:45 +0800 Subject: [PATCH] update chapter 3.5 heading --- src/chapter_3/chapter_3_5.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chapter_3/chapter_3_5.md b/src/chapter_3/chapter_3_5.md index 9cb98a3..e5ef768 100644 --- a/src/chapter_3/chapter_3_5.md +++ b/src/chapter_3/chapter_3_5.md @@ -7,7 +7,7 @@ Rust中的控制流结构主要包括: - `while`循环; - `for .. in` 循环。 -## 3.5.1. if条件判断 +## 3.5.1 if条件判断 - `if`执行条件判断,示例如下: @@ -67,7 +67,7 @@ Rust中的控制流结构主要包括: } ``` -## 3.5.2. loop循环 +## 3.5.2 loop循环 - loop重复执行代码 @@ -134,7 +134,7 @@ Rust中的控制流结构主要包括: } ``` -## 3.5.3. while条件循环 +## 3.5.3 while条件循环 - `while`条件循环执行代码,当条件不满足时结束循环,如下: @@ -167,7 +167,7 @@ Rust中的控制流结构主要包括: } ``` -## 3.5.4. `for .. in` 循环 +## 3.5.4 `for .. in` 循环 `for`循环用来对一个集合的每个元素执行一些代码,使用方式如下: