Merge: intrepreter: Fix the documentation of `PrimitiveInstance`
authorJean Privat <jean@pryen.org>
Tue, 28 Mar 2017 12:27:49 +0000 (08:27 -0400)
committerJean Privat <jean@pryen.org>
Tue, 28 Mar 2017 12:27:49 +0000 (08:27 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #2400

1  2 
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 <<real>> value
+ # The trick is just to encapsulate the “real” value.
  class PrimitiveInstance[E]
        super Instance