From b61e7656c29b524316cb2e9498a795b532da4abd Mon Sep 17 00:00:00 2001 From: Vladimir Serov Date: Sun, 9 Feb 2020 17:39:51 +0300 Subject: [PATCH] utf-8: updated README --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7138798..423bc7d 100644 --- a/README.md +++ b/README.md @@ -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::() - .dark_color(0) - .light_color(1) + let image = code.render::() + .dark_color(utf8::Unicode1x2::Light) + .light_color(utf8::Unicode1x2::Dark) .build(); println!("{}", image); }