diff --git a/components/config/definition.rst b/components/config/definition.rst
index bd482f47ed8..b2a714d5cdc 100644
--- a/components/config/definition.rst
+++ b/components/config/definition.rst
@@ -231,7 +231,7 @@ Or the following XML configuration:
.. code-block:: xml
- msyql
+ mysql
sqlite
The processed configuration is::
@@ -334,7 +334,7 @@ In order to maintain the array keys use the ``useAttributeAsKey()`` method::
The argument of this method (``name`` in the example above) defines the name of
the attribute added to each XML node to differentiate them. Now you can use the
-same YAML configuration showed before or the following XML configuration:
+same YAML configuration shown before or the following XML configuration:
.. code-block:: xml