Răsfoiți Sursa

Fix incorrect explanation of successful evaluation in Evaluating expressions (#5424)

itsadrago 3 ani în urmă
părinte
comite
e9c31d9104
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tutorials/scripting/evaluating_expressions.rst

+ 2 - 2
tutorials/scripting/evaluating_expressions.rst

@@ -107,11 +107,11 @@ instance such as ``self``, another script instance or even a singleton::
         var expression = Expression.new()
         expression.parse("double(10)")
 
-        # This won't work, since we're not passing the current script as the base instance.
+        # This won't work since we're not passing the current script as the base instance.
         var result = expression.execute([], null)
         print(result)  # null
 
-        # This will work won't work, since we're not passing the current script
+        # This will work since we're passing the current script (i.e. self)
         # as the base instance.
         result = expression.execute([], self)
         print(result)  # 20