intrepreter: Fix the documentation of `Instance::is_true`
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 28 Mar 2017 04:14:30 +0000 (00:14 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 28 Mar 2017 04:14:43 +0000 (00:14 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/interpreter/naive_interpreter.nit

index 233bdce..a8d4473 100644 (file)
@@ -691,9 +691,10 @@ abstract class Instance
        # ASSERT: not self.mtype.is_anchored
        var mtype: MType
 
-       # return true if the instance is the true value.
-       # return false if the instance is the true value.
-       # else aborts
+       # Return `true` if the instance is the `true` value.
+       #
+       # Return `false` if the instance is the `false` value.
+       # Abort if the instance is not a boolean value.
        fun is_true: Bool do abort
 
        # Return true if `self` IS `o` (using the Nit semantic of is)