This commit is contained in:
Jakku Sakura 2024-04-13 11:08:19 +00:00 committed by GitHub
commit 9796352d4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 15 deletions

View File

@ -158,25 +158,16 @@ fn pretend_this_is_main() -> Result<()> {
And this is the output you'll get if you run this program: 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: diagnostic error code: oops::my::bad (link) Error: oops!
\
diagnostic error code: oops::my::bad (link)
Error: oops!
\
Begin snippet for bad_file.rs starting
at line 2, column 3
\ \
Begin snippet for bad_file.rs starting at line 2, column 3
snippet line 1: source snippet line 1: source
\
snippet line 2: text
highlight starting at line 1, column 3: This bit here
\ \
snippet line 2: text highlight starting at line 1, column 3: This bit here
snippet line 3: here snippet line 3: here
\ diagnostic help: try doing it better next time?"
diagnostic help: try doing it better next time?"> />
### Using ### Using