From 6f09e6561132c06d02e9bbc6704e09153f981feb 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: Thu, 18 May 2023 11:22:30 +0800 Subject: [PATCH] Update chapter_3_22_1.md --- src/chapter_3/chapter_3_22_1.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chapter_3/chapter_3_22_1.md b/src/chapter_3/chapter_3_22_1.md index 6e65ecf..6b68c23 100644 --- a/src/chapter_3/chapter_3_22_1.md +++ b/src/chapter_3/chapter_3_22_1.md @@ -40,7 +40,9 @@ fn main() { - 构建脚本的生命周期 -在项目构建之前,Cargo会将build.rs编译成可执行文件,然后执行。在执行过程中,脚本可以使用println的方式跟Cargo进行通信,通信内容的格式为:cargo:真正的内容。示例如下: +在项目构建之前,Cargo会将build.rs编译成可执行文件,然后执行。在执行过程中,脚本可以使用println的方式跟Cargo进行通信,通信内容的格式为:cargo:真正的内容。 + +示例如下: ```Rust // build.rs fn main() {