mirror of https://github.com/zkat/miette.git
docs: typo in README.md (#295)
Dynamic diagnostics example contains a macro invocation without a '!' symbol.
This commit is contained in:
parent
06b348230a
commit
ba313282a8
|
|
@ -615,7 +615,7 @@ then you may want to use [`miette!`], [`diagnostic!`] macros or
|
||||||
|
|
||||||
let source = "2 + 2 * 2 = 8".to_string();
|
let source = "2 + 2 * 2 = 8".to_string();
|
||||||
let report = miette!(
|
let report = miette!(
|
||||||
labels = vec[
|
labels = vec![
|
||||||
LabeledSpan::at(12..13, "this should be 6"),
|
LabeledSpan::at(12..13, "this should be 6"),
|
||||||
],
|
],
|
||||||
help = "'*' has greater precedence than '+'",
|
help = "'*' has greater precedence than '+'",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue