summaryrefslogtreecommitdiffstats
path: root/src/doc/src/declarative/qdeclarativeintro.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/src/declarative/qdeclarativeintro.qdoc')
-rw-r--r--src/doc/src/declarative/qdeclarativeintro.qdoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/src/declarative/qdeclarativeintro.qdoc b/src/doc/src/declarative/qdeclarativeintro.qdoc
index 8fdc03aa..e5e52407 100644
--- a/src/doc/src/declarative/qdeclarativeintro.qdoc
+++ b/src/doc/src/declarative/qdeclarativeintro.qdoc
@@ -212,7 +212,8 @@ QML properties are what is known as \e type-safe. That is, they only allow you t
matches the property type. For example, the \c x property of item is a real, and if you try to assign
a string to it you will get an error.
-\badcode
+\code
+//bad code
Item {
x: "hello" // illegal!
}