summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-08-01 23:39:22 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-08-27 15:16:09 +0200
commitd5ffa42cd2420bdaa31d467e8e6e68b41133a038 (patch)
tree8dc480a7f97acfe7101ec0bf0a72b634a4cbdccd /doc/classes
parentec9302ceccb75f44038db3695d2f9e7c82cfe951 (diff)
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.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Expression.xml2
1 files changed, 1 insertions, 1 deletions
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 @@
</brief_description>
<description>
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()