diff --git a/doc/macos.rst b/doc/macos.rst
index bb84e7165a06ded07fbfac8f466d89c99e0a03c1..ac5626659d0995cd90e8158fa945e06071e5fef1 100644
--- a/doc/macos.rst
+++ b/doc/macos.rst
@@ -111,7 +111,7 @@ Running regular updates
 We recommend that the CI machine to have homebrew and installed pip packages
 updated regularly (once a week).  To do so, setup a cronjob like the following:
 
-.. code-block:: crontab
+.. code-block:: text
 
    MAILTO=you@example.com
    SHELL=/bin/bash