Skip to content

Commit

Permalink
Fix documentation links
Browse files Browse the repository at this point in the history
  • Loading branch information
PoignardAzur committed Dec 9, 2022
1 parent f84a526 commit fc5d77d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub struct EnumVariant {
/// }
/// ```
///
/// See https://doc.rust-lang.org/reference/items/modules.html
/// See also: <https://doc.rust-lang.org/reference/items/modules.html>
#[derive(Clone, Debug)]
pub struct Module {
pub attributes: Vec<Attribute>,
Expand Down Expand Up @@ -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<Attribute>,
Expand Down Expand Up @@ -428,7 +428,7 @@ pub struct NamedField {
/// # struct Foo;
/// ```
///
/// See also: https://doc.rust-lang.org/reference/attributes.html
/// See also: <https://doc.rust-lang.org/reference/attributes.html>
#[derive(Clone)]
pub struct Attribute {
/// `#`, always present
Expand Down
2 changes: 1 addition & 1 deletion src/types_edition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit fc5d77d

Please sign in to comment.