unicode: updated readme

This commit is contained in:
Vladimir Serov 2020-02-11 11:05:22 +03:00
parent 3d1d6883f2
commit 6f407492ec

View file

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