Skip to content

Commit

Permalink
chore(doc): fix ambiguous links in the Rust docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaka91 committed Feb 14, 2024
1 parent e6d4884 commit e5d73fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/mabo-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ mod definition;
mod encode;
mod size;

/// Shorthand for the standard result type, that defaults to the crate level's [`Error`] type.
/// Shorthand for the standard result type, that defaults to the crate level's [`Error`](enum@Error)
/// type.
pub type Result<T, E = Error> = std::result::Result<T, E>;

/// Errors that can happen when generating Rust source code from Mabo schema files.
Expand Down Expand Up @@ -137,7 +138,7 @@ impl Compiler {
/// # Errors
///
/// Will return an `Err` if any of the various cases happen, which are described in the
/// [`Error`] type.
/// [`Error`](enum@Error) type.
pub fn compile(&self, manifest_dir: &str) -> Result<()> {
init_miette();

Expand Down

0 comments on commit e5d73fe

Please sign in to comment.