mirror of
https://github.com/Mesabloo/diagnose.git
synced 2024-11-22 01:32:56 +03:00
Correct usage example in readme
This commit is contained in:
parent
3a99b70403
commit
df6a339789
@ -102,8 +102,8 @@ let beautifulExample =
|
||||
let diagnostic = addFile def "somefile.zc" "let id<a>(x : a) : a := x\n + 1"
|
||||
let diagnostic' = addReport diagnostic beautifulExample
|
||||
|
||||
-- Print with unicode characters, colors and the default style
|
||||
printDiagnostic stdout True 4 defaultStyle diagnostic'
|
||||
-- Print with unicode characters, and the default (colorful) style
|
||||
printDiagnostic stdout WithUnicode 4 defaultStyle diagnostic'
|
||||
```
|
||||
|
||||
More examples are given in the [`test/rendering`](./test/rendering) folder (execute `stack test` to see the output).
|
||||
|
Loading…
Reference in New Issue
Block a user