Skip to content

Commit 1758ba7

Browse files
committed
Fix indent in code examples.
1 parent f2a0af5 commit 1758ba7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/writing/documentation.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ PEP 257 is the primary reference for docstrings. (http://www.python.org/dev/peps
3939
|One-line docstrings: ::
4040
4141
def kos_root():
42-
"""Return the pathname of the KOS root directory."""
43-
global _kos_root
44-
if _kos_root: return _kos_root
45-
...
42+
"""Return the pathname of the KOS root directory."""
43+
global _kos_root
44+
if _kos_root: return _kos_root
45+
...
4646

4747
Multi-line docstrings: ::
4848

4949
def complex(real=0.0, imag=0.0):
50-
"""Form a complex number.
50+
"""Form a complex number.
5151

52-
Keyword arguments:
53-
real -- the real part (default 0.0)
54-
imag -- the imaginary part (default 0.0)
52+
Keyword arguments:
53+
real -- the real part (default 0.0)
54+
imag -- the imaginary part (default 0.0)
5555

56-
"""
57-
if imag == 0.0 and real == 0.0: return complex_zero
58-
...
56+
"""
57+
if imag == 0.0 and real == 0.0: return complex_zero
58+
...
5959

6060
Sphinx
6161
------

0 commit comments

Comments
 (0)