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),