Skip to content

Commit 8228519

Browse files
committed
ACTUALLY fixed it
because cargo make copies lib.rs into readme, not the other way
1 parent 2c7a74e commit 8228519

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,22 @@ And this is the output you'll get if you run this program:
162162
<img src="https://raw.githubusercontent.com/zkat/miette/main/images/single-line-example.png" alt="
163163
Narratable printout:
164164
\
165-
Error: Types mismatched for operation.
166-
Diagnostic severity: error
167-
Begin snippet starting at line 1, column 1
165+
diagnostic error code: oops::my::bad (link)
166+
Error: oops!
167+
168+
\
169+
Begin snippet for bad_file.rs starting
170+
at line 2, column 3
171+
\
172+
snippet line 1: source
173+
174+
\
175+
snippet line 2: text
176+
highlight starting at line 1, column 3: This bit here
177+
\
178+
snippet line 3: here
168179
\
169-
snippet line 1: 3 + &quot;5&quot;
170-
label starting at line 1, column 1: int
171-
label starting at line 1, column 1: doesn't support these values.
172-
label starting at line 1, column 1: string
173-
diagnostic help: Change int or string to be the right types and try again.
174-
diagnostic code: nu::parser::unsupported_operation
175-
For more details, see https://docs.rs/nu-parser/0.1.0/nu-parser/enum.ParseError.html#variant.UnsupportedOperation">
180+
diagnostic help: try doing it better next time?">
176181

177182
### Using
178183

src/lib.rs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,22 @@
161161
//! <img src="https://raw.githubusercontent.com/zkat/miette/main/images/single-line-example.png" alt="
162162
//! Narratable printout:
163163
//! \
164-
//! Error: Types mismatched for operation.
165-
//! Diagnostic severity: error
166-
//! Begin snippet starting at line 1, column 1
164+
//! diagnostic error code: oops::my::bad (link)
165+
//! Error: oops!
166+
//!
167167
//! \
168-
//! snippet line 1: 3 + &quot;5&quot;
169-
//! label starting at line 1, column 1: int
170-
//! label starting at line 1, column 1: doesn't support these values.
171-
//! label starting at line 1, column 1: string
172-
//! diagnostic help: Change int or string to be the right types and try again.
173-
//! diagnostic code: nu::parser::unsupported_operation
174-
//! For more details, see https://docs.rs/nu-parser/0.1.0/nu-parser/enum.ParseError.html#variant.UnsupportedOperation">
168+
//! Begin snippet for bad_file.rs starting
169+
//! at line 2, column 3
170+
//! \
171+
//! snippet line 1: source
172+
//!
173+
//! \
174+
//! snippet line 2: text
175+
//! highlight starting at line 1, column 3: This bit here
176+
//! \
177+
//! snippet line 3: here
178+
//! \
179+
//! diagnostic help: try doing it better next time?">
175180
//!
176181
//! ## Using
177182
//!

0 commit comments

Comments
 (0)