summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlscriptstring.cpp')
-rw-r--r--src/declarative/qml/qmlscriptstring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlscriptstring.cpp b/src/declarative/qml/qmlscriptstring.cpp
index 6f669d5..1ccad53 100644
--- a/src/declarative/qml/qmlscriptstring.cpp
+++ b/src/declarative/qml/qmlscriptstring.cpp
@@ -60,12 +60,12 @@ public:
The QmlScriptString is used by properties that want to accept a script "assignment" from QML.
Normally, the following code would result in a binding being established for the \c script
-property. If the property had a type of QmlScriptString, the script - \e {print(1921)} - itself
+property. If the property had a type of QmlScriptString, the script - \e {console.log(1921)} - itself
would be passed to the property and it could choose how to handle it.
\code
MyType {
- script: print(1921)
+ script: console.log(1921)
}
\endcode
*/