summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-30 04:59:02 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-30 04:59:02 (GMT)
commit34e5b058c81757e58f7356290d7866f37a52be53 (patch)
treec5b543a2557a624608a421179d20d26f8bebffdf
parent85b3e8fab4a644f94a2953885f1e68369b070e64 (diff)
downloadQt-34e5b058c81757e58f7356290d7866f37a52be53.zip
Qt-34e5b058c81757e58f7356290d7866f37a52be53.tar.gz
Qt-34e5b058c81757e58f7356290d7866f37a52be53.tar.bz2
Doc
-rw-r--r--doc/src/declarative/ecmascriptblocks.qdoc4
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;