Skip to content

Commit

Permalink
docs: Fix broken links from macro docs. (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 8, 2023
1 parent 2e3e5c9 commit c3d4db2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/eyreish/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ macro_rules! ensure {
/// ## `anyhow`/`eyre` Users
///
/// You can just replace `use`s of the `anyhow!`/`eyre!` macros with `miette!`.
///
/// [`diagnostic!`]: crate::diagnostic!
/// [`Report`]: crate::Report
#[macro_export]
macro_rules! miette {
($($key:ident = $value:expr,)* $fmt:literal $($arg:tt)*) => {
Expand Down Expand Up @@ -282,6 +285,8 @@ macro_rules! miette {
)]
/// assert_eq!(diag.message, "1 + 2 = 3");
/// ```
///
/// [`MietteDiagnostic`]: crate::MietteDiagnostic
#[macro_export]
macro_rules! diagnostic {
($fmt:literal $($arg:tt)*) => {{
Expand Down

0 comments on commit c3d4db2

Please sign in to comment.