diff --git a/docs/simplesamlphp-authproc.txt b/docs/simplesamlphp-authproc.txt
index 145bd996c4d507ad0a8faeebfec79429efbf0f19..d8122894b40979ebbe9ff568dad4657a493849f5 100644
--- a/docs/simplesamlphp-authproc.txt
+++ b/docs/simplesamlphp-authproc.txt
@@ -142,7 +142,7 @@ The following filters are included in the simpleSAMLphp distribution:
 - [`core:TargetedID`](./core:authproc_targetedid): Generate the `eduPersonTargetedID` attribute.
 - [`core:WarnShortSSOInterval`](./core:authproc_warnshortssointerval): Give a warning if the user logs into the same SP twice within a few seconds.
 - [`preprodwarning:Warning`](./preprodwarning:warning): Warn the user about accessing a test IdP.
-- [`saml:AttributeNameID`](./saml:nameid): Generate custon NameID with the value of an attribute.
+- [`saml:AttributeNameID`](./saml:nameid): Generate custom NameID with the value of an attribute.
 - [`saml:PersistentNameID`](./saml:nameid): Generate persistent NameID from an attribute.
 - [`saml:TransientNameID`](./saml:nameid): Generate transient NameID.
 
diff --git a/modules/saml/docs/nameid.txt b/modules/saml/docs/nameid.txt
index c1d0da4f89e9949900858a53bc922602ae790909..1fa3c63abfc9cbf6d365fcca30e060b6fd31e110 100644
--- a/modules/saml/docs/nameid.txt
+++ b/modules/saml/docs/nameid.txt
@@ -75,7 +75,7 @@ This example makes three NameIDs available:
         ),
         3 => array(
             'class' => 'saml:AttributeNameID',
-            'attribute' => 'eduPersonPrincipalName',
+            'attribute' => 'mail',
             'Format' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
         ),
     ),