diff --git a/docs/simplesamlphp-modules.md b/docs/simplesamlphp-modules.md
index c92e9940b7d0f1548a129c2f5ae2da3322c01adc..ccbb851c81223793ed5dc742b2e26efe3014c460 100644
--- a/docs/simplesamlphp-modules.md
+++ b/docs/simplesamlphp-modules.md
@@ -42,7 +42,7 @@ short introduction to what you can do with them:
 
 ## Module layout
 
-Each SimpleSAMLphp module is stored in a directory under the the
+Each SimpleSAMLphp module is stored in a directory under the
 `modules`-directory. The module directory contains the following
 directories and files:
 
diff --git a/lib/SimpleSAML/SessionHandler.php b/lib/SimpleSAML/SessionHandler.php
index 0a336e891b7e9b97e450652d1258e6efa9e4a33e..7c18ac210c4afbe0b1da6118e442877b38e8e317 100644
--- a/lib/SimpleSAML/SessionHandler.php
+++ b/lib/SimpleSAML/SessionHandler.php
@@ -46,7 +46,7 @@ abstract class SessionHandler
 
 
     /**
-     * This constructor is included in case it is needed in the the
+     * This constructor is included in case it is needed in the
      * future. Including it now allows us to write parent::__construct() in
      * the subclasses of this class.
      */
diff --git a/lib/SimpleSAML/XML/Errors.php b/lib/SimpleSAML/XML/Errors.php
index af4d3dc91e453e9768ca35e03ee1a0447e274c54..201c56f26956f69821628b9e3cd1b68d8109e586 100644
--- a/lib/SimpleSAML/XML/Errors.php
+++ b/lib/SimpleSAML/XML/Errors.php
@@ -27,7 +27,7 @@ class Errors
 
 
     /**
-     * Append current XML errors to the the current stack level.
+     * Append current XML errors to the current stack level.
      */
     private static function addErrors()
     {