diff --git a/doc/guix.texi b/doc/guix.texi
index 6a1d34fb09627a84306152daa8d66e69ae5e34a8..77a4b8ed7170088eaddb77bfb3bba4164542e8ec 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -27028,7 +27028,7 @@ be accomplished with the following operating system configuration snippet:
      (plain-file "sudoers"
                  (string-append (plain-file-content %sudoers-specification)
                                 (format #f "~a ALL = NOPASSWD: ALL~%"
-                                        %username)))))
+                                        %user)))))
 
 @end lisp