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
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);
}