diff --git a/doc/misc/use-package.texi b/doc/misc/use-package.texi index 3dabea4eea1..d3b6ee99003 100644 --- a/doc/misc/use-package.texi +++ b/doc/misc/use-package.texi @@ -1273,7 +1273,7 @@ cells, or a string or regexp. The following example reproduces the default @code{ruby-mode} configuration, exactly as it is in Emacs out-of-the-box. That mode is enabled automatically when a file whose name matches the regexp -@code{"\\.rb\\'"} (a file with the @samp{.rb} extension), or when the +@code{"\\.rb\\'"} (a file with the @file{.rb} extension), or when the first line of the file (known as the ``shebang'') matches the string @code{"ruby"}: