unicode: updated readme

pull/42/head
Vladimir Serov 2020-02-11 11:05:22 +03:00
parent 1fb4556b7f
commit adcd1a6cf0
No known key found for this signature in database
GPG Key ID: 6BA7C26C3FDF7BB3
1 changed files with 4 additions and 4 deletions

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