fix typos
authorRainRat <rainrat78@yahoo.ca>
Wed, 24 Jan 2024 23:14:46 +0000 (15:14 -0800)
committerFabian Fichter <ianfab@users.noreply.github.com>
Thu, 25 Jan 2024 09:25:20 +0000 (10:25 +0100)
src/apiutil.h
src/parser.cpp
src/parser.h
tests/js/test.js

index 0794abc..4b364f6 100644 (file)
@@ -237,7 +237,7 @@ inline Disambiguation disambiguation_level(const Position& pos, Move m, Notation
             return SQUARE_DISAMBIGUATION;
     }
 
-    // A disambiguation occurs if we have more then one piece of type 'pt'
+    // A disambiguation occurs if we have more than one piece of type 'pt'
     // that can reach 'to' with a legal move.
     Bitboard b = pos.pieces(us, pt) ^ from;
     Bitboard others = 0;
index 48aa687..9d2b55b 100644 (file)
@@ -544,7 +544,7 @@ Variant* VariantParser<DoCheck>::parse(Variant* v) {
     // Report invalid options
     if (DoCheck)
     {
-        const std::set<std::string>& parsedKeys = config.get_comsumed_keys();
+        const std::set<std::string>& parsedKeys = config.get_consumed_keys();
         for (const auto& it : config)
             if (parsedKeys.find(it.first) == parsedKeys.end())
                 std::cerr << "Invalid option: " << it.first << std::endl;
index 36b208e..04610b2 100644 (file)
@@ -34,7 +34,7 @@ public:
         consumedKeys.insert(s);
         return std::map<std::string, std::string>::find(s);
     }
-    const std::set<std::string>& get_comsumed_keys() {
+    const std::set<std::string>& get_consumed_keys() {
         return consumedKeys;
     }
 private:
index 88f4c59..3c82032 100644 (file)
@@ -768,7 +768,7 @@ describe('ffish.setOption(name, value)', function () {
 });
 
 describe('ffish.setOptionInt(name, value)', function () {
-  it("it sets a int uci option value pair", () => {
+  it("it sets an int uci option value pair", () => {
     ffish.setOptionInt("Threads", 4);
     chai.expect(true).to.equal(true);
   });