diff --git a/docs/simplesamlphp-sp-api.txt b/docs/simplesamlphp-sp-api.txt
index 7ccb2ae53e261078ed91e181305841441b5a729b..d867b380d663c266aecbd59e4d085d84d9a895ac 100644
--- a/docs/simplesamlphp-sp-api.txt
+++ b/docs/simplesamlphp-sp-api.txt
@@ -209,7 +209,7 @@ See the [`saml:SP`](./saml:sp) reference for information about available SAML au
 ### Example
 
     $idp = $auth->getAuthData('saml:sp:IdP');
-    print(You are logged in from: ' . htmlspecialchars($idp));
+    print('You are logged in from: ' . htmlspecialchars($idp));
 
 
 `getLoginURL`