summaryrefslogtreecommitdiff
path: root/doc/markup/code.rst
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2014-08-24 11:07:36 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2014-08-24 11:07:36 +0900
commita2410ec2ee39f2317d42bd76da51ceba14f69e95 (patch)
tree26f118e525f986f689470f4ea866766a34eb8f63 /doc/markup/code.rst
parent8536b4844e6f8c290ad84f2de233dec76ba9547f (diff)
downloadsphinx-git-a2410ec2ee39f2317d42bd76da51ceba14f69e95.tar.gz
Update CHANGES and documentation for PR#266.
Diffstat (limited to 'doc/markup/code.rst')
-rw-r--r--doc/markup/code.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/markup/code.rst b/doc/markup/code.rst
index c1d9c25f4..f69bb161b 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.