Skip to content

Commit

Permalink
ACTUALLY fixed it
Browse files Browse the repository at this point in the history
because cargo make copies lib.rs into readme, not the other way
  • Loading branch information
TrapinchO committed Apr 3, 2024
1 parent 2c7a74e commit 8228519
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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="
Narratable printout:
\
Error: Types mismatched for operation.
Diagnostic severity: error
Begin snippet starting at line 1, column 1
diagnostic error code: oops::my::bad (link)
Error: oops!

\
Begin snippet for bad_file.rs starting
at line 2, column 3
\
snippet line 1: source

\
snippet line 2: text
highlight starting at line 1, column 3: This bit here
\
snippet line 3: here
\
snippet line 1: 3 + &quot;5&quot;
label starting at line 1, column 1: int
label starting at line 1, column 1: doesn't support these values.
label starting at line 1, column 1: string
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">
diagnostic help: try doing it better next time?">

### Using

Expand Down
25 changes: 15 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,22 @@
//! <img src="https://raw.githubusercontent.com/zkat/miette/main/images/single-line-example.png" alt="
//! Narratable printout:
//! \
//! Error: Types mismatched for operation.
//! Diagnostic severity: error
//! Begin snippet starting at line 1, column 1
//! diagnostic error code: oops::my::bad (link)
//! Error: oops!
//!
//! \
//! snippet line 1: 3 + &quot;5&quot;
//! label starting at line 1, column 1: int
//! label starting at line 1, column 1: doesn't support these values.
//! label starting at line 1, column 1: string
//! 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">
//! Begin snippet for bad_file.rs starting
//! at line 2, column 3
//! \
//! snippet line 1: source
//!
//! \
//! 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
//!
Expand Down

0 comments on commit 8228519

Please sign in to comment.