From 34408d66aa3401a65e42ece72edc4518e1ce763a Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Tue, 2 Oct 2018 00:21:19 +0000 Subject: [PATCH] Tweaked the BitBuffer class top-level comment in all languages except C. --- cpp/BitBuffer.hpp | 2 +- java/io/nayuki/qrcodegen/BitBuffer.java | 2 +- javascript/qrcodegen.js | 2 +- python/qrcodegen.py | 2 +- rust/src/lib.rs | 1 + typescript/qrcodegen.ts | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cpp/BitBuffer.hpp b/cpp/BitBuffer.hpp index be00ee4..2e6d734 100644 --- a/cpp/BitBuffer.hpp +++ b/cpp/BitBuffer.hpp @@ -30,7 +30,7 @@ namespace qrcodegen { /* - * An appendable sequence of bits (0's and 1's). + * An appendable sequence of bits (0s and 1s). */ class BitBuffer final : public std::vector { diff --git a/java/io/nayuki/qrcodegen/BitBuffer.java b/java/io/nayuki/qrcodegen/BitBuffer.java index 265068f..4d8c5d7 100644 --- a/java/io/nayuki/qrcodegen/BitBuffer.java +++ b/java/io/nayuki/qrcodegen/BitBuffer.java @@ -28,7 +28,7 @@ import java.util.Objects; /** - * An appendable sequence of bits (0's and 1's). + * An appendable sequence of bits (0s and 1s). */ public final class BitBuffer implements Cloneable { diff --git a/javascript/qrcodegen.js b/javascript/qrcodegen.js index 6ca8618..8f1170c 100644 --- a/javascript/qrcodegen.js +++ b/javascript/qrcodegen.js @@ -950,7 +950,7 @@ var qrcodegen = new function() { /* - * A private helper class that represents an appendable sequence of bits. + * A private helper class that represents an appendable sequence of bits (0s and 1s). * This constructor creates an empty bit buffer (length 0). */ function BitBuffer() { diff --git a/python/qrcodegen.py b/python/qrcodegen.py index 4327f65..23482e2 100644 --- a/python/qrcodegen.py +++ b/python/qrcodegen.py @@ -811,7 +811,7 @@ class _ReedSolomonGenerator(object): class _BitBuffer(list): - """An appendable sequence of bits (0's and 1's).""" + """An appendable sequence of bits (0s and 1s).""" def get_bytes(self): """Packs this buffer's bits into bytes in big endian, diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 7e345e7..7a34831 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -1059,6 +1059,7 @@ impl QrSegmentMode { /*---- Bit buffer functionality ----*/ +// An appendable sequence of bits (0s and 1s). pub struct BitBuffer(pub Vec); diff --git a/typescript/qrcodegen.ts b/typescript/qrcodegen.ts index 3ab5c8b..c346dea 100644 --- a/typescript/qrcodegen.ts +++ b/typescript/qrcodegen.ts @@ -884,7 +884,7 @@ namespace qrcodegen { /* - * An appendable sequence of bits. The implicit constructor creates an empty bit buffer (length 0). + * An appendable sequence of bits (0s and 1s). The implicit constructor creates an empty bit buffer (length 0). */ class BitBuffer extends Array {