doc: README.md changed text to console

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2023-07-28 17:09:18 +02:00
parent 9e03541ac1
commit c630f84690
Signed by: harald
GPG key ID: 900F3C4971086004

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",