From 58f687bb4f4543dd7314bed2b7d486c5ee7c3772 Mon Sep 17 00:00:00 2001 From: singcl <1276837689@qq.com> Date: Wed, 21 Sep 2022 00:08:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(docs):=E4=BF=AE=E5=A4=8Dch13-03=20html?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E7=BB=93=E6=9D=9F=E6=A0=87=E7=AD=BE=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 文章ch13-03-improving-our-io-project 59行span元素缺失结束标签导致vuepress build的时候报错: Compiling with vite[vite:vue] Element is missing end tag. Compiling with vite - failed in 3.10s SyntaxError: Element is missing end tag. --- src/ch13-03-improving-our-io-project.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch13-03-improving-our-io-project.md b/src/ch13-03-improving-our-io-project.md index 7ef2c9b..1d8aacb 100644 --- a/src/ch13-03-improving-our-io-project.md +++ b/src/ch13-03-improving-our-io-project.md @@ -56,7 +56,7 @@ {{#rustdoc_include ../listings/ch13-functional-features/listing-13-26/src/lib.rs:here}} ``` -示例 13-26:以迭代器作为参数更新 `Config::new` 的签名 +示例 13-26:以迭代器作为参数更新 `Config::new` 的签名 `env::args` 函数的标准库文档显示,它返回的迭代器的类型为 `std::env::Args`。我们已经更新了 `Config :: new` 函数的签名,因此参数 `args` 的类型为 `std::env::Args` 而不是 `&[String]`。因为我们拥有 `args` 的所有权,并且将通过对其进行迭代来改变 `args` ,所以我们可以将 `mut` 关键字添加到 `args` 参数的规范中以使其可变。