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