utf-8: updated README

This commit is contained in:
Vladimir Serov 2020-02-09 17:39:51 +03:00
parent ebd1865545
commit b61e7656c2

View file

@ -114,12 +114,13 @@ Generates this SVG:
```rust ```rust
use qrcode::QrCode; use qrcode::QrCode;
use qrcode::render::utf8;
fn main() { fn main() {
let code = QrCode::new("mow mow").unwrap(); let code = QrCode::new("mow mow").unwrap();
let image = code.render::<u8>() let image = code.render::<utf8::Unicode1x2>()
.dark_color(0) .dark_color(utf8::Unicode1x2::Light)
.light_color(1) .light_color(utf8::Unicode1x2::Dark)
.build(); .build();
println!("{}", image); println!("{}", image);
} }