Skip to content

Commit

Permalink
change example labels messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Override-6 committed Jun 9, 2023
1 parent 8225799 commit 746064b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/ariadne.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fn main() {
.with_message("Incompatible types")
.with_config(Config::default().with_compact(true))
.with_label(Label::new(0..1).with_color(Color::Red))
.with_label(Label::new(2..3).with_color(Color::Blue).with_message("This is another test").with_order(1))
.with_label(Label::new(2..3).with_color(Color::Blue).with_message("`b` for banana").with_order(1))
.with_label(Label::new(4..5).with_color(Color::Green))
.with_label(Label::new(7..9).with_color(Color::Cyan).with_message("This is a test"))
.with_label(Label::new(7..9).with_color(Color::Cyan).with_message("`e` for emerald"))
.finish()
.print(Source::from(SOURCE))
.unwrap();
Expand Down

0 comments on commit 746064b

Please sign in to comment.