Merge: nitc: fix --typing-test-metrics by using correct tags in FFI
[nit.git] / contrib / nitrpg / src / game.nit
index 1ab143e..a109949 100644 (file)
@@ -67,7 +67,7 @@ class Game
 
        # Returns the repo `full_name`.
        #
-       # Example: `"privat/nit"`
+       # Example: `"nitlang/nit"`
        redef fun key do return repo.full_name
 
        # We need a `GithubAPI` client to load Github data.
@@ -212,8 +212,7 @@ class Player
        #
        # Used to load players from saved data.
        init from_json(game: Game, json: JsonObject) do
-               self.game = game
-               name = json["name"].to_s
+               init(game, json["name"].to_s)
                nitcoins = json["nitcoins"].as(Int)
        end