Skip to content

Commit

Permalink
🎨 Adjust comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed May 13, 2019
1 parent ba4259f commit d004688
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions example/qrcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@
var bitOutput = new BitOutputStream(byteOutput);
var bitLength = lzwMinCodeSize + 1;
try {
// clear code
// Clear code
bitOutput.write(clearCode, bitLength);
var dataIndex = 0;
var s = String.fromCharCode(this.data[dataIndex++]);
Expand All @@ -1057,7 +1057,7 @@
}
}
bitOutput.write(table.indexOf(s), bitLength);
// end code
// End code
bitOutput.write(endCode, bitLength);
}
finally {
Expand Down Expand Up @@ -1103,11 +1103,11 @@
output.writeByte(0);
output.writeByte(0);
// Global Color Map
// black
// Black
output.writeByte(0x00);
output.writeByte(0x00);
output.writeByte(0x00);
// white
// White
output.writeByte(0xff);
output.writeByte(0xff);
output.writeByte(0xff);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nuintun/qrcode",
"version": "0.30.1",
"version": "0.30.2",
"description": "A pure JavaScript QRCode encode and decode library.",
"main": "es5/index.js",
"module": "esnext/index.js",
Expand Down
8 changes: 4 additions & 4 deletions src/image/GIFImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class GIFImage {
let bitLength: number = lzwMinCodeSize + 1;

try {
// clear code
// Clear code
bitOutput.write(clearCode, bitLength);

let dataIndex: number = 0;
Expand Down Expand Up @@ -156,7 +156,7 @@ export class GIFImage {

bitOutput.write(table.indexOf(s), bitLength);

// end code
// End code
bitOutput.write(endCode, bitLength);
} finally {
bitOutput.close();
Expand Down Expand Up @@ -210,12 +210,12 @@ export class GIFImage {
output.writeByte(0);

// Global Color Map
// black
// Black
output.writeByte(0x00);
output.writeByte(0x00);
output.writeByte(0x00);

// white
// White
output.writeByte(0xff);
output.writeByte(0xff);
output.writeByte(0xff);
Expand Down

0 comments on commit d004688

Please sign in to comment.