utf-8: updated README

pull/42/head
Vladimir Serov 2020-02-09 17:39:51 +03:00
parent 398e2d33f8
commit ee99427e9e
No known key found for this signature in database
GPG Key ID: 6BA7C26C3FDF7BB3
1 changed files with 4 additions and 3 deletions

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