diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 23:40:18 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 23:40:18 -0500 |
commit | 138c28d18cee56ae09416cc00d2d461e983d90e8 (patch) | |
tree | 81a8935b7a2b8ea1c7ba429a3bde25db9c33deee /docs/doc_conventions.rst | |
parent | 8563795fee9a8b865c7e67cc0fd19dc4c5593e13 (diff) | |
parent | 3c627af7c1e22bcd0cd0a49dee05fd6b626bccc5 (diff) | |
download | cmd2-git-138c28d18cee56ae09416cc00d2d461e983d90e8.tar.gz |
Merge branch 'master' into color_autocomplete
Diffstat (limited to 'docs/doc_conventions.rst')
-rw-r--r-- | docs/doc_conventions.rst | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/docs/doc_conventions.rst b/docs/doc_conventions.rst index 9b714d45..49149d7c 100644 --- a/docs/doc_conventions.rst +++ b/docs/doc_conventions.rst @@ -167,28 +167,20 @@ To reference a method or function, use one of the following approaches: 1. Reference the full dotted path of the method:: - The :meth:`cmd2.cmd2.Cmd.poutput` method is similar to the Python built-in + The :meth:`cmd2.Cmd.poutput` method is similar to the Python built-in print function. -Which renders as: The :meth:`cmd2.cmd2.Cmd.poutput` method is similar to the +Which renders as: The :meth:`cmd2.Cmd.poutput` method is similar to the Python built-in print function. 2. Reference the full dotted path to the method, but only display the method name:: - The :meth:`~cmd2.cmd2.Cmd.poutput` method is similar to the Python built-in print function. + The :meth:`~cmd2.Cmd.poutput` method is similar to the Python built-in print function. -Which renders as: The :meth:`~cmd2.cmd2.Cmd.poutput` method is similar to the +Which renders as: The :meth:`~cmd2.Cmd.poutput` method is similar to the Python built-in print function. -3. Reference a portion of the dotted path of the method:: - - The :meth:`.cmd2.Cmd.poutput` method is similar to the Python built-in print - function. - -Which renders as: The :meth:`.cmd2.Cmd.poutput` method is similar to the Python -built-in print function. - Avoid either of these approaches: 1. Reference just the class name without enough dotted path:: |