diff --git a/src/xmlpatterns/schema/qxsdstatemachine_tpl_p.h b/src/xmlpatterns/schema/qxsdstatemachine_tpl_p.h
index ad042c6a0b66bc2b4b1e99b0529cd83f489e6cd8..9ef5a45709abb6909237c89fc2ecda01603fc240 100644
--- a/src/xmlpatterns/schema/qxsdstatemachine_tpl_p.h
+++ b/src/xmlpatterns/schema/qxsdstatemachine_tpl_p.h
@@ -264,7 +264,7 @@ bool XsdStateMachine<TransitionType>::outputGraph(QIODevice *device, const QStri
             s << "  " << it4.key() << " -> " << states.at(i) << " [label=\"&#949;\"]\n";
     }
 
-    // draw node infos
+    // draw node info
     while (it3.hasNext()) {
         it3.next();
 
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp
index 96a7e1645e5b2624470fe4981de2e9e339c704cb..2cb79a635c93245ebf843e76a33150930f8f7dee 100644
--- a/tests/auto/qxmlquery/tst_qxmlquery.cpp
+++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp
@@ -2103,7 +2103,7 @@ void tst_QXmlQuery::fnDocNetworkAccessFailure_data() const
     QTest::newRow("data scheme, not-well-formed")
         << QUrl(QLatin1String("data:application/xml;base64,PGUvg==="));
 
-    QTest::newRow("file scheme, non-existant file")
+    QTest::newRow("file scheme, non-existent file")
         << QUrl(QLatin1String("file:///example.com/does/notExist.xml"));
 
     QTest::newRow("http scheme, file not found")