* Allow literal examples to be included in the manual.
svn path=/nixpkgs/trunk/; revision=29024
This commit is contained in:
@@ -288,4 +288,11 @@ rec {
|
|||||||
else x;
|
else x;
|
||||||
|
|
||||||
|
|
||||||
|
/* For use in the ‘example’ option attribute. It causes the given
|
||||||
|
text to be included verbatim in documentation. This is necessary
|
||||||
|
for example values that are not simple values, e.g.,
|
||||||
|
functions. */
|
||||||
|
literalExample = text: { _type = "literalExample"; inherit text; };
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user