Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

docs(core): fix broken links

Elijah Potter4df0ab6d16f8
diff --git a/harper-core/src/linting/lint_kind.rs b/harper-core/src/linting/lint_kind.rs
index 513f9461e..8b4a483f0 100644
--- a/harper-core/src/linting/lint_kind.rs
+++ b/harper-core/src/linting/lint_kind.rs
@@ -3,7 +3,7 @@ use std::fmt::Display;
use is_macro::Is;
use serde::{Deserialize, Serialize};
-/// The general category a [`Lint`] falls into.
+/// The general category a [`Lint`](super::Lint) falls into.
/// There's no reason not to add a new item here if you are adding a new rule that doesn't fit
/// the existing categories.
#[derive(Debug, Clone, Copy, Serialize, Deserialize, Is, Default, Hash, PartialEq)]
diff --git a/harper-core/src/linting/suggestion.rs b/harper-core/src/linting/suggestion.rs
index 8c0bc1099..0941ebb67 100644
--- a/harper-core/src/linting/suggestion.rs
+++ b/harper-core/src/linting/suggestion.rs
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
use crate::Span;
-/// A suggested edit that could resolve a [`Lint`].
+/// A suggested edit that could resolve a [`Lint`](super::Lint).
#[derive(Debug, Clone, Serialize, Deserialize, Is, PartialEq, Eq, Hash)]
pub enum Suggestion {
/// Replace the offending text with a specific character sequence.
diff --git a/harper-core/src/patterns/sequence_pattern.rs b/harper-core/src/patterns/sequence_pattern.rs
index ef5386a00..7571c1d65 100644
--- a/harper-core/src/patterns/sequence_pattern.rs
+++ b/harper-core/src/patterns/sequence_pattern.rs
@@ -11,7 +11,7 @@ use crate::{CharStringExt, Lrc, Token, TokenKind};
///
/// ## Example
///
-/// Let's say we wanted to locate places in a [`Document`] where an article is followed by a noun.
+/// Let's say we wanted to locate places in a [`Document`](crate::Document) where an article is followed by a noun.
/// We can do that with a `SequencePattern`.
///
/// ```rust