From ed0ade7384c6f0dc465d22e4908bbcb3a94a068e Mon Sep 17 00:00:00 2001 From: Leo Kirchner Date: Thu, 21 Mar 2024 11:07:10 +0100 Subject: [PATCH] Update impl-serialize.md Update struct links in impl-serialize.md to point to new version of the book. --- _src/impl-serialize.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_src/impl-serialize.md b/_src/impl-serialize.md index d4de1f3..acede2b 100644 --- a/_src/impl-serialize.md +++ b/_src/impl-serialize.md @@ -178,10 +178,10 @@ Serde distinguishes between four types of structs. [Ordinary structs] and [tuple structs] follow the three-step process of init, elements, end just like a sequence or map. [Newtype structs] and [unit structs] are more like primitives. -[Ordinary structs]: https://doc.rust-lang.org/book/structs.html -[tuple structs]: https://doc.rust-lang.org/book/structs.html#tuple-structs -[Newtype structs]: https://doc.rust-lang.org/book/structs.html#tuple-structs -[unit structs]: https://doc.rust-lang.org/book/structs.html#unit-like-structs +[Ordinary structs]: https://doc.rust-lang.org/book/ch05-00-structs.html +[tuple structs]: https://doc.rust-lang.org/book/ch05-01-defining-structs.html +[Newtype structs]: https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#using-the-newtype-pattern-to-implement-external-traits-on-external-types +[unit structs]: https://doc.rust-lang.org/book/ch05-01-defining-structs.html#unit-like-structs-without-any-fields ```rust # #![allow(dead_code)]