Skip to content

Commit

Permalink
utf-8: updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
cab404 committed Feb 9, 2020
1 parent 398e2d3 commit ee99427
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,13 @@ Generates this SVG:

```rust
use qrcode::QrCode;
use qrcode::render::utf8;

fn main() {
let code = QrCode::new("mow mow").unwrap();
let image = code.render::<u8>()
.dark_color(0)
.light_color(1)
let image = code.render::<utf8::Unicode1x2>()
.dark_color(utf8::Unicode1x2::Light)
.light_color(utf8::Unicode1x2::Dark)
.build();
println!("{}", image);
}
Expand Down

0 comments on commit ee99427

Please sign in to comment.