diff options
Diffstat (limited to 'doc/markup/code.rst')
-rw-r--r-- | doc/markup/code.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/markup/code.rst b/doc/markup/code.rst index c1d9c25f..f69bb161 100644 --- a/doc/markup/code.rst +++ b/doc/markup/code.rst @@ -206,16 +206,16 @@ Showing a file name .. versionadded:: 1.3 -A ``filename`` option can be given to show that name before the code block. For +A ``caption`` option can be given to show that name before the code block. For example:: .. code-block:: python - :filename: this.py + :caption: this.py print 'Explicit is better than implicit.' -:rst:dir:`literalinclude` also supports the ``filename`` option, with the +:rst:dir:`literalinclude` also supports the ``caption`` option, with the additional feature that if you leave the value empty, the shown filename will be exactly the one given as an argument. |