Skip to content

Commit

Permalink
docs: fix broken link (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik authored Dec 8, 2024
1 parent b2011f6 commit c7eeada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ You can derive a `Diagnostic` from any `std::error::Error` type.
`thiserror` is a great way to define them, and plays nicely with `miette`!
*/
use miette::{Diagnostic, SourceSpan};
use miette::{Diagnostic, NamedSource, SourceSpan};
use thiserror::Error;

#[derive(Error, Debug, Diagnostic)]
Expand All @@ -127,7 +127,7 @@ Use this `Result` type (or its expanded version) as the return type
throughout your app (but NOT your libraries! Those should always return
concrete types!).
*/
use miette::{NamedSource, Result};
use miette::Result;
fn this_fails() -> Result<()> {
// You can use plain strings as a `Source`, or anything that implements
// the one-method `Source` trait.
Expand Down Expand Up @@ -266,7 +266,7 @@ pub fn some_tool() -> Result<Version> {
}
```

To construct your own simple adhoc error use the [miette!] macro:
To construct your own simple adhoc error use the [`miette!`] macro:
```rust
// my_app/lib/my_internal_file.rs
use miette::{miette, Result};
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
//! }
//! ```
//!
//! To construct your own simple adhoc error use the [miette!] macro:
//! To construct your own simple adhoc error use the [`miette!`] macro:
//! ```rust
//! // my_app/lib/my_internal_file.rs
//! use miette::{miette, Result};
Expand Down

0 comments on commit c7eeada

Please sign in to comment.