mirror of https://github.com/zkat/miette.git
docs: Fix broken links from macro docs. (#278)
This commit is contained in:
parent
2e3e5c9d15
commit
c3d4db2618
|
|
@ -222,6 +222,9 @@ macro_rules! ensure {
|
||||||
/// ## `anyhow`/`eyre` Users
|
/// ## `anyhow`/`eyre` Users
|
||||||
///
|
///
|
||||||
/// You can just replace `use`s of the `anyhow!`/`eyre!` macros with `miette!`.
|
/// You can just replace `use`s of the `anyhow!`/`eyre!` macros with `miette!`.
|
||||||
|
///
|
||||||
|
/// [`diagnostic!`]: crate::diagnostic!
|
||||||
|
/// [`Report`]: crate::Report
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! miette {
|
macro_rules! miette {
|
||||||
($($key:ident = $value:expr,)* $fmt:literal $($arg:tt)*) => {
|
($($key:ident = $value:expr,)* $fmt:literal $($arg:tt)*) => {
|
||||||
|
|
@ -282,6 +285,8 @@ macro_rules! miette {
|
||||||
)]
|
)]
|
||||||
/// assert_eq!(diag.message, "1 + 2 = 3");
|
/// assert_eq!(diag.message, "1 + 2 = 3");
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// [`MietteDiagnostic`]: crate::MietteDiagnostic
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! diagnostic {
|
macro_rules! diagnostic {
|
||||||
($fmt:literal $($arg:tt)*) => {{
|
($fmt:literal $($arg:tt)*) => {{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue