From: Jean Privat Date: Tue, 28 Mar 2017 12:27:49 +0000 (-0400) Subject: Merge: intrepreter: Fix the documentation of `PrimitiveInstance` X-Git-Url: http://nitlanguage.org?hp=-c Merge: intrepreter: Fix the documentation of `PrimitiveInstance` Signed-off-by: Jean-Christophe Beaupré Pull-Request: #2400 --- 68745f845f7b1fd8b8a1717691b656e579b8010c diff --combined src/interpreter/naive_interpreter.nit index a8d4473,0ec406c..430af89 --- a/src/interpreter/naive_interpreter.nit +++ b/src/interpreter/naive_interpreter.nit @@@ -691,10 -691,9 +691,10 @@@ abstract class Instanc # 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) @@@ -749,7 -748,7 +749,7 @@@ class MutableInstanc end # Special instance to handle primitives values (int, bool, etc.) - # The trick it just to encapsulate the <> value + # The trick is just to encapsulate the “real” value. class PrimitiveInstance[E] super Instance