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:
* `{}`: Display
```text
```console
func1 error calling func2
```
* `{:#}`: Alternative Display
```text
```console
func1 error calling func2
Caused by:
func2 error: calling func3
@ -113,7 +113,7 @@ Caused by:
```
* `{:?}`: Debug
```text
```console
examples/example.rs:50:13: func1 error calling func2
Caused by:
examples/example.rs:25:13: Func2Error(func2 error: calling func3)
@ -127,7 +127,7 @@ Kind(NotFound)
```
* `{:#?}`: Alternative Debug
```text
```console
Error<example::Func1Error> {
occurrence: Some(
"examples/example.rs:50:13",