From d5ffa42cd2420bdaa31d467e8e6e68b41133a038 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 1 Aug 2020 23:39:22 +0200 Subject: Add a test suite for Expression This also makes the first parameter of `Expression::execute()` optional from C++. Previously, it was only optional in the scripting API. --- doc/classes/Expression.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/Expression.xml b/doc/classes/Expression.xml index fcd1aa43c0..f2611dc850 100644 --- a/doc/classes/Expression.xml +++ b/doc/classes/Expression.xml @@ -5,7 +5,7 @@ An expression can be made of any arithmetic operation, built-in math function call, method call of a passed instance, or built-in type construction call. - An example expression text using the built-in math functions could be [code]sqrt(pow(3,2) + pow(4,2))[/code]. + An example expression text using the built-in math functions could be [code]sqrt(pow(3, 2) + pow(4, 2))[/code]. In the following example we use a [LineEdit] node to write our expression and show the result. [codeblock] onready var expression = Expression.new() -- cgit v1.2.3