mirror of https://github.com/zkat/miette.git
ACTUALLY fixed it
because cargo make copies lib.rs into readme, not the other way
This commit is contained in:
parent
2c7a74ef15
commit
82285192fc
25
README.md
25
README.md
|
|
@ -162,17 +162,22 @@ And this is the output you'll get if you run this program:
|
||||||
<img src="https://raw.githubusercontent.com/zkat/miette/main/images/single-line-example.png" alt="
|
<img src="https://raw.githubusercontent.com/zkat/miette/main/images/single-line-example.png" alt="
|
||||||
Narratable printout:
|
Narratable printout:
|
||||||
\
|
\
|
||||||
Error: Types mismatched for operation.
|
diagnostic error code: oops::my::bad (link)
|
||||||
Diagnostic severity: error
|
Error: oops!
|
||||||
Begin snippet starting at line 1, column 1
|
|
||||||
\
|
\
|
||||||
snippet line 1: 3 + "5"
|
Begin snippet for bad_file.rs starting
|
||||||
label starting at line 1, column 1: int
|
at line 2, column 3
|
||||||
label starting at line 1, column 1: doesn't support these values.
|
\
|
||||||
label starting at line 1, column 1: string
|
snippet line 1: source
|
||||||
diagnostic help: Change int or string to be the right types and try again.
|
|
||||||
diagnostic code: nu::parser::unsupported_operation
|
\
|
||||||
For more details, see https://docs.rs/nu-parser/0.1.0/nu-parser/enum.ParseError.html#variant.UnsupportedOperation">
|
snippet line 2: text
|
||||||
|
highlight starting at line 1, column 3: This bit here
|
||||||
|
\
|
||||||
|
snippet line 3: here
|
||||||
|
\
|
||||||
|
diagnostic help: try doing it better next time?">
|
||||||
|
|
||||||
### Using
|
### Using
|
||||||
|
|
||||||
|
|
|
||||||
25
src/lib.rs
25
src/lib.rs
|
|
@ -161,17 +161,22 @@
|
||||||
//! <img src="https://raw.githubusercontent.com/zkat/miette/main/images/single-line-example.png" alt="
|
//! <img src="https://raw.githubusercontent.com/zkat/miette/main/images/single-line-example.png" alt="
|
||||||
//! Narratable printout:
|
//! Narratable printout:
|
||||||
//! \
|
//! \
|
||||||
//! Error: Types mismatched for operation.
|
//! diagnostic error code: oops::my::bad (link)
|
||||||
//! Diagnostic severity: error
|
//! Error: oops!
|
||||||
//! Begin snippet starting at line 1, column 1
|
//!
|
||||||
//! \
|
//! \
|
||||||
//! snippet line 1: 3 + "5"
|
//! Begin snippet for bad_file.rs starting
|
||||||
//! label starting at line 1, column 1: int
|
//! at line 2, column 3
|
||||||
//! label starting at line 1, column 1: doesn't support these values.
|
//! \
|
||||||
//! label starting at line 1, column 1: string
|
//! snippet line 1: source
|
||||||
//! diagnostic help: Change int or string to be the right types and try again.
|
//!
|
||||||
//! diagnostic code: nu::parser::unsupported_operation
|
//! \
|
||||||
//! For more details, see https://docs.rs/nu-parser/0.1.0/nu-parser/enum.ParseError.html#variant.UnsupportedOperation">
|
//! snippet line 2: text
|
||||||
|
//! highlight starting at line 1, column 3: This bit here
|
||||||
|
//! \
|
||||||
|
//! snippet line 3: here
|
||||||
|
//! \
|
||||||
|
//! diagnostic help: try doing it better next time?">
|
||||||
//!
|
//!
|
||||||
//! ## Using
|
//! ## Using
|
||||||
//!
|
//!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue