From c7051ac7482fb62e74326b75522c3a603de67c7d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 12 Aug 2018 10:48:20 -0700 Subject: [PATCH] Update links to a renamed manual chapter --- serde/src/de/mod.rs | 9 ++++----- serde/src/ser/mod.rs | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/serde/src/de/mod.rs b/serde/src/de/mod.rs index 0db9367d..795f0cb6 100644 --- a/serde/src/de/mod.rs +++ b/serde/src/de/mod.rs @@ -24,8 +24,7 @@ //! //! Additionally, Serde provides a procedural macro called [`serde_derive`] to //! automatically generate [`Deserialize`] implementations for structs and enums -//! in your program. See the [codegen section of the manual] for how to use -//! this. +//! in your program. See the [derive section of the manual] for how to use this. //! //! In rare cases it may be necessary to implement [`Deserialize`] manually for //! some type in your program. See the [Implementing `Deserialize`] section of @@ -117,7 +116,7 @@ //! [`serde_derive`]: https://crates.io/crates/serde_derive //! [`serde_json`]: https://github.com/serde-rs/json //! [`serde_yaml`]: https://github.com/dtolnay/serde-yaml -//! [codegen section of the manual]: https://serde.rs/codegen.html +//! [derive section of the manual]: https://serde.rs/derive.html //! [data formats]: https://serde.rs/#data-formats use lib::*; @@ -498,7 +497,7 @@ impl<'a> Display for Expected + 'a { /// /// Additionally, Serde provides a procedural macro called `serde_derive` to /// automatically generate `Deserialize` implementations for structs and enums -/// in your program. See the [codegen section of the manual][codegen] for how to +/// in your program. See the [derive section of the manual][derive] for how to /// use this. /// /// In rare cases it may be necessary to implement `Deserialize` manually for @@ -511,7 +510,7 @@ impl<'a> Display for Expected + 'a { /// provides an implementation of `Deserialize` for it. /// /// [de]: https://docs.serde.rs/serde/de/index.html -/// [codegen]: https://serde.rs/codegen.html +/// [derive]: https://serde.rs/derive.html /// [impl-deserialize]: https://serde.rs/impl-deserialize.html /// /// # Lifetime diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index 60b9a3e3..f37f8675 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -24,8 +24,7 @@ //! //! Additionally, Serde provides a procedural macro called [`serde_derive`] to //! automatically generate [`Serialize`] implementations for structs and enums -//! in your program. See the [codegen section of the manual] for how to use -//! this. +//! in your program. See the [derive section of the manual] for how to use this. //! //! In rare cases it may be necessary to implement [`Serialize`] manually for //! some type in your program. See the [Implementing `Serialize`] section of the @@ -112,7 +111,7 @@ //! [`serde_derive`]: https://crates.io/crates/serde_derive //! [`serde_json`]: https://github.com/serde-rs/json //! [`serde_yaml`]: https://github.com/dtolnay/serde-yaml -//! [codegen section of the manual]: https://serde.rs/codegen.html +//! [derive section of the manual]: https://serde.rs/derive.html //! [data formats]: https://serde.rs/#data-formats use lib::*; @@ -196,7 +195,7 @@ declare_error_trait!(Error: Sized + Debug + Display); /// /// Additionally, Serde provides a procedural macro called [`serde_derive`] to /// automatically generate `Serialize` implementations for structs and enums in -/// your program. See the [codegen section of the manual] for how to use this. +/// your program. See the [derive section of the manual] for how to use this. /// /// In rare cases it may be necessary to implement `Serialize` manually for some /// type in your program. See the [Implementing `Serialize`] section of the @@ -211,7 +210,7 @@ declare_error_trait!(Error: Sized + Debug + Display); /// [`LinkedHashMap`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html /// [`linked-hash-map`]: https://crates.io/crates/linked-hash-map /// [`serde_derive`]: https://crates.io/crates/serde_derive -/// [codegen section of the manual]: https://serde.rs/codegen.html +/// [derive section of the manual]: https://serde.rs/derive.html /// [ser]: https://docs.serde.rs/serde/ser/index.html pub trait Serialize { /// Serialize this value into the given Serde serializer.