diff --git a/c/qrcodegen-demo.c b/c/qrcodegen-demo.c index ae78ea7..ef44108 100644 --- a/c/qrcodegen-demo.c +++ b/c/qrcodegen-demo.c @@ -55,7 +55,7 @@ int main(void) { // Creates a single QR Code, then prints it to the console. static void doBasicDemo(void) { - const char *text = "Hello, world!"; // User-supplied text + const char *text = "Hello, world!"; // User-supplied text enum qrcodegen_Ecc errCorLvl = qrcodegen_Ecc_LOW; // Error correction level // Make and print the QR Code symbol diff --git a/cpp/QrCodeGeneratorDemo.cpp b/cpp/QrCodeGeneratorDemo.cpp index d199e23..168e273 100644 --- a/cpp/QrCodeGeneratorDemo.cpp +++ b/cpp/QrCodeGeneratorDemo.cpp @@ -61,7 +61,7 @@ int main() { // Creates a single QR Code, then prints it to the console. static void doBasicDemo() { - const char *text = "Hello, world!"; // User-supplied text + const char *text = "Hello, world!"; // User-supplied text const QrCode::Ecc errCorLvl = QrCode::Ecc::LOW; // Error correction level // Make and print the QR Code symbol diff --git a/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java b/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java index dbcf233..2b4baa4 100644 --- a/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java +++ b/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java @@ -57,11 +57,11 @@ public final class QrCodeGeneratorDemo { QrCode qr = QrCode.encodeText(text, errCorLvl); // Make the QR Code symbol - BufferedImage img = qr.toImage(10, 4); // Convert to bitmap image - File imgFile = new File("hello-world-QR.png"); // File path for output - ImageIO.write(img, "png", imgFile); // Write image to file + BufferedImage img = qr.toImage(10, 4); // Convert to bitmap image + File imgFile = new File("hello-world-QR.png"); // File path for output + ImageIO.write(img, "png", imgFile); // Write image to file - String svg = qr.toSvgString(4); // Convert to SVG XML code + String svg = qr.toSvgString(4); // Convert to SVG XML code Files.write(new File("hello-world-QR.svg").toPath(), svg.getBytes(StandardCharsets.UTF_8)); } diff --git a/python/qrcodegen-demo.py b/python/qrcodegen-demo.py index 7a1bfaa..13dd93e 100644 --- a/python/qrcodegen-demo.py +++ b/python/qrcodegen-demo.py @@ -41,7 +41,7 @@ def main(): def do_basic_demo(): """Creates a single QR Code, then prints it to the console.""" - text = u"Hello, world!" # User-supplied Unicode text + text = u"Hello, world!" # User-supplied Unicode text errcorlvl = QrCode.Ecc.LOW # Error correction level # Make and print the QR Code symbol diff --git a/rust/examples/qrcodegen-demo.rs b/rust/examples/qrcodegen-demo.rs index c28ad72..80b2b7a 100644 --- a/rust/examples/qrcodegen-demo.rs +++ b/rust/examples/qrcodegen-demo.rs @@ -47,7 +47,7 @@ fn main() { // Creates a single QR Code, then prints it to the console. fn do_basic_demo() { - let text: &'static str = "Hello, world!"; // User-supplied Unicode text + let text: &'static str = "Hello, world!"; // User-supplied Unicode text let errcorlvl: QrCodeEcc = QrCodeEcc::Low; // Error correction level // Make and print the QR Code symbol