From 4c987dcc742b96d51287fe8b6b638c225f35a4ce Mon Sep 17 00:00:00 2001 From: Tenax-599 Date: Fri, 3 Jan 2025 17:54:07 +0800 Subject: [PATCH] Update naming.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新GzDecoder文档连接 --- src/practice/naming.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/practice/naming.md b/src/practice/naming.md index 003ff3c2..9e28161a 100644 --- a/src/practice/naming.md +++ b/src/practice/naming.md @@ -69,7 +69,7 @@ [`BufReader`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.into_inner -[`GzDecoder`]: https://docs.rs/flate2/0.2.19/flate2/read/struct.GzDecoder.html#method.into_inner +[`GzDecoder`]: https://starry-network.github.io/starry_node/flate2/write/struct.GzDecoder.html#method.into_inner [`AtomicBool`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.into_inner 如果 `mut` 限定符在返回类型中出现,那么在命名上也**应该**体现出来。例如,[`Vec::as_mut_slice`] 就说明它返回了一个 `mut` 切片,在这种情况下 `as_mut_slice` 比 `as_slice_mut` 更适合。