From 34e5b058c81757e58f7356290d7866f37a52be53 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Mon, 30 Nov 2009 14:59:02 +1000 Subject: Doc --- doc/src/declarative/ecmascriptblocks.qdoc | 4 ++-- 1 file 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; -- cgit v0.12