doc: README.md changed text to console (#14)

This commit is contained in:
Harald Hoyer 2023-07-28 17:10:33 +02:00 committed by GitHub
commit ae10e2e14f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,12 +95,12 @@ Debug information is worth it!
`chainerror` supports multiple output formats, which can be selected with the different format specifiers: `chainerror` supports multiple output formats, which can be selected with the different format specifiers:
* `{}`: Display * `{}`: Display
```text ```console
func1 error calling func2 func1 error calling func2
``` ```
* `{:#}`: Alternative Display * `{:#}`: Alternative Display
```text ```console
func1 error calling func2 func1 error calling func2
Caused by: Caused by:
func2 error: calling func3 func2 error: calling func3
@ -113,7 +113,7 @@ Caused by:
``` ```
* `{:?}`: Debug * `{:?}`: Debug
```text ```console
examples/example.rs:50:13: func1 error calling func2 examples/example.rs:50:13: func1 error calling func2
Caused by: Caused by:
examples/example.rs:25:13: Func2Error(func2 error: calling func3) examples/example.rs:25:13: Func2Error(func2 error: calling func3)
@ -127,7 +127,7 @@ Kind(NotFound)
``` ```
* `{:#?}`: Alternative Debug * `{:#?}`: Alternative Debug
```text ```console
Error<example::Func1Error> { Error<example::Func1Error> {
occurrence: Some( occurrence: Some(
"examples/example.rs:50:13", "examples/example.rs:50:13",