From 50d623011debc4f219867e3f97eeef787300ba8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A4=E7=8B=90=E4=B8=80=E5=86=B2?= <43949039+anonymousGiga@users.noreply.github.com> Date: Wed, 17 May 2023 10:50:29 +0800 Subject: [PATCH] Update chapter_2.md --- src/chapter_2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chapter_2.md b/src/chapter_2.md index 83dc8cb..4f3efde 100644 --- a/src/chapter_2.md +++ b/src/chapter_2.md @@ -142,7 +142,7 @@ Rust使用Cargo作为官方的构建工具和包管理器,下面通过Cargo创 ```cargo new hello_world``` 创建后,可以看到整个目录的结构如下: -[图片] +![目录结构](assets/62.PNG) 其中Cargo.toml是项目的配置文件,src为源代码目录,main.rs为主程序文件。 ### 2.3.2 编写程序 @@ -163,7 +163,7 @@ cd hello_world cargo run ``` 运行结果如下: -[图片] +![目录结构](assets/63.PNG) ### 2.3.4 理解Rust源码的基本结构 下面简单介绍Rust源码的结构。