diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/declarative/ecmascriptblocks.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/declarative/ecmascriptblocks.qdoc b/doc/src/declarative/ecmascriptblocks.qdoc index 470d942..411d189 100644 --- a/doc/src/declarative/ecmascriptblocks.qdoc +++ b/doc/src/declarative/ecmascriptblocks.qdoc @@ -66,7 +66,7 @@ the body of the \l Script element. \code Rectangle { Script { - function factorial(var a) { + function factorial(a) { a = Integer(a); if (a <= 0) return 1; @@ -85,7 +85,7 @@ as it declares the non-function variable \c lastResult. \code // Illegal inline code block var lastResult = 0 -function factorial(var a) { +function factorial(a) { a = Integer(a); if (a <= 0) lastResult = 1; |