Skip to content

Commit a9c2bae

Browse files
docs: Improve linking. (#289)
1 parent f4d056e commit a9c2bae

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/eyreish/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ impl Report {
3030

3131
/// Create a new error object from a printable error message.
3232
///
33-
/// If the argument implements std::error::Error, prefer `Report::new`
33+
/// If the argument implements [`std::error::Error`], prefer `Report::new`
3434
/// instead which preserves the underlying error's cause chain and
35-
/// backtrace. If the argument may or may not implement std::error::Error
35+
/// backtrace. If the argument may or may not implement [`std::error::Error`]
3636
/// now or in the future, use `miette!(err)` which handles either way
3737
/// correctly.
3838
///
@@ -206,7 +206,7 @@ impl Report {
206206
/// Create a new error from an error message to wrap the existing error.
207207
///
208208
/// For attaching a higher level error message to a `Result` as it is
209-
/// propagated, the [crate::WrapErr] extension trait may be more
209+
/// propagated, the [`WrapErr`](crate::WrapErr) extension trait may be more
210210
/// convenient than this function.
211211
///
212212
/// The primary reason to use `error.wrap_err(...)` instead of
@@ -233,7 +233,7 @@ impl Report {
233233
unsafe { Report::construct(error, vtable, handler) }
234234
}
235235

236-
/// Compatibility re-export of wrap_err for interop with `anyhow`
236+
/// Compatibility re-export of `wrap_err` for interop with `anyhow`
237237
pub fn context<D>(self, msg: D) -> Self
238238
where
239239
D: Display + Send + Sync + 'static,

src/handlers/theme.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ impl GraphicalTheme {
5555

5656
/// A "basic" graphical theme that skips colors and unicode characters and
5757
/// just does monochrome ascii art. If you want a completely non-graphical
58-
/// rendering of your `Diagnostic`s, check out
59-
/// [crate::NarratableReportHandler], or write your own
60-
/// [crate::ReportHandler]!
58+
/// rendering of your [`Diagnostic`](crate::Diagnostic)s, check out
59+
/// [`NarratableReportHandler`](crate::NarratableReportHandler), or write
60+
/// your own [`ReportHandler`](crate::ReportHandler)
6161
pub fn none() -> Self {
6262
Self {
6363
characters: ThemeCharacters::ascii(),
@@ -79,7 +79,8 @@ impl Default for GraphicalTheme {
7979
}
8080

8181
/**
82-
Styles for various parts of graphical rendering for the [crate::GraphicalReportHandler].
82+
Styles for various parts of graphical rendering for the
83+
[`GraphicalReportHandler`](crate::GraphicalReportHandler).
8384
*/
8485
#[derive(Debug, Clone)]
8586
pub struct ThemeStyles {
@@ -159,7 +160,7 @@ impl ThemeStyles {
159160
// https://github.com/zesterer/ariadne/blob/e3cb394cb56ecda116a0a1caecd385a49e7f6662/src/draw.rs
160161

161162
/// Characters to be used when drawing when using
162-
/// [crate::GraphicalReportHandler].
163+
/// [`GraphicalReportHandler`](crate::GraphicalReportHandler).
163164
#[allow(missing_docs)]
164165
#[derive(Debug, Clone, Eq, PartialEq)]
165166
pub struct ThemeCharacters {

src/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ whole thing--meaning you should be able to support `SourceCode`s which are
232232
gigabytes or larger in size.
233233
*/
234234
pub trait SourceCode: Send + Sync {
235-
/// Read the bytes for a specific span from this SourceCode, keeping a
235+
/// Read the bytes for a specific span from this `SourceCode`, keeping a
236236
/// certain number of lines before and after the span as context.
237237
fn read_span<'a>(
238238
&'a self,

0 commit comments

Comments
 (0)