[gnome-sudoku/arnaudb/wip/gtk4: 38/47] Fix typos.




commit 2b34f77c17c9baa703b2b6b49cb799dc24a3ae6b
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Jun 13 20:08:02 2020 +0200

    Fix typos.
    
    Found by [Codespell](https://github.com/codespell-project/codespell).

 lib/sudoku-board.vala | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/lib/sudoku-board.vala b/lib/sudoku-board.vala
index 3b61700..d948112 100644
--- a/lib/sudoku-board.vala
+++ b/lib/sudoku-board.vala
@@ -270,7 +270,7 @@ public class SudokuBoard : Object
         assert (val > 0);
         assert (val <= max_val);
 
-        /* Cant insert in to a fixed cell, unless you know what you are doing */
+        /* Can't insert in to a fixed cell, unless you know what you are doing */
         if (!is_fixed)
             assert (!this.is_fixed[row, col]);
 
@@ -371,12 +371,12 @@ public class SudokuBoard : Object
 
     public Set<Coord?> get_occurances(Gee.List<Coord?> coords, int val)
     {
-        Set<Coord?> occurances = new HashSet<Coord?>((HashDataFunc<Coord>) Coord.hash, 
(EqualDataFunc<Coord>) Coord.equal);
+        Set<Coord?> occurrences = new HashSet<Coord?>((HashDataFunc<Coord>) Coord.hash, 
(EqualDataFunc<Coord>) Coord.equal);
         foreach (Coord coord in coords)
             if (cells[coord.row, coord.col] == val)
-                occurances.add (coord);
+                occurrences.add (coord);
 
-        return occurances;
+        return occurrences;
     }
 
     public bool row_contains(int row, int val)
@@ -404,9 +404,9 @@ public class SudokuBoard : Object
     /* returns if val is possible in coords */
     private void mark_breakages_for(Gee.List<Coord?> coords, int val)
     {
-        Set<Coord?> occurances = get_occurances(coords, val);
-        if (occurances.size != 1)
-            broken_coords.add_all(occurances);
+        Set<Coord?> occurrences = get_occurances(coords, val);
+        if (occurrences.size != 1)
+            broken_coords.add_all(occurrences);
     }
 
     public void to_initial_state ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]