Commits

Georg Brandl committed b0e74a8

Add an example.

Comments (0)

Files changed (1)

doc/markup/inline.rst

 .. rst:role:: samp
 
    A piece of literal text, such as code.  Within the contents, you can use
-   curly braces to indicate a "variable" part, as in ``:file:``.
+   curly braces to indicate a "variable" part, as in :rst:dir:`file`.  For
+   example, in ``:samp:`print 1+{variable}```, the part ``variable`` would be
+   emphasized.
 
    If you don't need the "variable part" indication, use the standard
    ````code```` instead.