Use reStructuredText syntax in example docstring

This commit is contained in:
Baiju Muthukadan 2012-05-14 00:20:33 +05:30
parent 71e68a26f4
commit 8b743099c4

View File

@ -176,8 +176,9 @@ Documenting Salt modules is easy! Just add a python docstring to the function.
''' '''
A function to make some spam with eggs! A function to make some spam with eggs!
CLI Example: CLI Example::
salt '*' test.spam eggs
salt '*' test.spam eggs
''' '''
return eggs return eggs
@ -234,7 +235,8 @@ function, test.ping:
Just used to make sure the minion is up and responding Just used to make sure the minion is up and responding
Return True Return True
CLI Example: CLI Example::
salt '*' test.ping
salt '*' test.ping
''' '''
return True return True