git://git.eng.unimelb.edu.au
/
python-guide.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e238491
)
Consistent code highlighting.
author
Niko W
<der@nik0.de>
Sat, 12 May 2012 09:16:30 +0000
(11:16 +0200)
committer
Niko W
<der@nik0.de>
Sat, 12 May 2012 09:16:30 +0000
(11:16 +0200)
docs/writing/structure.rst
patch
|
blob
|
history
diff --git
a/docs/writing/structure.rst
b/docs/writing/structure.rst
index
ca07335
..
462ca12
100644
(file)
--- a/
docs/writing/structure.rst
+++ b/
docs/writing/structure.rst
@@
-259,7
+259,7
@@
or a method. The 'decorated' function or method will replace the original
in Python it can be done 'manually' but using the @decorator syntax is
clearer and thus prefered.
-.. code-block::
P
ython
+.. code-block::
p
ython
def foo():
# do something
@@
-306,7
+306,7
@@
Some guidelines allow to avoid this issue:
**Bad**
-.. code-block::
P
ython
+.. code-block::
p
ython
a = 1
a = 'a string'