lib: add new module `template`
[nit.git] / lib / standard / kernel.nit
index bbc2b70..bdfd05c 100644 (file)
@@ -37,7 +37,7 @@ interface Object
 
        # Return true if `self` and `other` are the same instance.
        # Unless specific code, you should use `==` instead.
-       fun is_same_instance(other: nullable Object): Bool do return self is other #is intern
+       fun is_same_instance(other: nullable Object): Bool is intern
 
        # Have `self` and `other` the same value?
        ##
@@ -462,7 +462,7 @@ universal Char
                else if is_digit then
                        return self.ascii - '0'.ascii
                else
-                       return self.to_lower.ascii - ('a'.ascii + 10)
+                       return self.to_lower.ascii - 'a'.ascii + 10
                end
        end