From fc5d77dfba3d6ce8529d4cd0f46da50c51e29939 Mon Sep 17 00:00:00 2001 From: Olivier FAURE Date: Fri, 9 Dec 2022 12:18:24 +0100 Subject: [PATCH] Fix documentation links --- src/types.rs | 6 +++--- src/types_edition.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types.rs b/src/types.rs index d8091af..1e287fd 100644 --- a/src/types.rs +++ b/src/types.rs @@ -128,7 +128,7 @@ pub struct EnumVariant { /// } /// ``` /// -/// See https://doc.rust-lang.org/reference/items/modules.html +/// See also: #[derive(Clone, Debug)] pub struct Module { pub attributes: Vec, @@ -361,7 +361,7 @@ pub enum FnParam { /// Possible parameters captures by this are `self`, `mut self`, `&self` or `&mut self`. /// Reference lifetimes are not yet supported. /// -/// Parameters of the form `self: Pin<&mut Self>` are recognized as [`FunctionTypedParameter`]. +/// Parameters of the form `self: Pin<&mut Self>` are recognized as [`FnTypedParam`]. #[derive(Clone, Debug)] pub struct FnReceiverParam { pub attributes: Vec, @@ -428,7 +428,7 @@ pub struct NamedField { /// # struct Foo; /// ``` /// -/// See also: https://doc.rust-lang.org/reference/attributes.html +/// See also: #[derive(Clone)] pub struct Attribute { /// `#`, always present diff --git a/src/types_edition.rs b/src/types_edition.rs index 7c698e5..4373d64 100644 --- a/src/types_edition.rs +++ b/src/types_edition.rs @@ -135,7 +135,7 @@ impl Declaration { } } - /// Returns the [`Mod`] variant of the enum if possible. + /// Returns the [`Module`] variant of the enum if possible. pub fn as_module(&self) -> Option<&Module> { match self { Declaration::Module(mod_decl) => Some(mod_decl),