From fd97c87d983604dfcfc6a368abde9bc323930dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E9=A3=9ESunface?= Date: Fri, 11 Feb 2022 15:03:38 +0800 Subject: [PATCH] Update book/contents/first-try/cargo.md --- book/contents/first-try/cargo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/first-try/cargo.md b/book/contents/first-try/cargo.md index 7003acb9..e4d31bee 100644 --- a/book/contents/first-try/cargo.md +++ b/book/contents/first-try/cargo.md @@ -33,7 +33,7 @@ Rust 项目主要分为两个类型:`bin` 和 `lib`,前者是一个可运行 早期的 `cargo` 在创建项目时,必须添加 `--bin` 的参数,如下所示: ```console -cargo new world_hello --bin +$ cargo new world_hello --bin ``` 现在的版本,已经无需此参数,`cargo` 默认就创建 `bin` 类型的项目,