chiark / gitweb /
documentation: doc++
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 8 Jan 2022 21:34:11 +0000 (22:34 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 8 Jan 2022 22:17:04 +0000 (23:17 +0100)
documentation/search.js
documentation/test/test-search.js

index 2ab06bd91c725d6089a519fce3ef3dc3ed02d0b6..87a3ed7d09d7054738033af945250ab401de5356 100644 (file)
@@ -74,7 +74,7 @@ var Search = {
             return false;
         }
 
-        /* Separate the data into the trie and the result map */
+        /* Separate the data into the trie and the result / type map */
         let mapOffset = view.getUint32(6, true);
         let typeMapOffset = view.getUint32(10, true);
         this.trie = new DataView(buffer, 14, mapOffset - 14);
index faf19c13347890b4b5875616ec4b96bf76f8d773..63827868467d3c697d5ffe5573f19db2ae578339 100644 (file)
@@ -96,7 +96,7 @@ const { StringDecoder } = require('string_decoder');
     assert.ok(!Search.init(buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength)));
 }
 
-/* Opening file with  */
+/* Opening file with wrong version */
 {
     let buffer = fs.readFileSync(path.join(__dirname, "js-test-data/wrong-version.bin"));
     assert.ok(!Search.init(buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength)));