From: Jean-Christophe Beaupré Date: Tue, 28 Mar 2017 04:14:30 +0000 (-0400) Subject: intrepreter: Fix the documentation of `Instance::is_true` X-Git-Url: http://nitlanguage.org intrepreter: Fix the documentation of `Instance::is_true` Signed-off-by: Jean-Christophe Beaupré --- diff --git a/src/interpreter/naive_interpreter.nit b/src/interpreter/naive_interpreter.nit index 233bdce..a8d4473 100644 --- a/src/interpreter/naive_interpreter.nit +++ b/src/interpreter/naive_interpreter.nit @@ -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)