@@ -78,7 +78,7 @@ When striving for coding excellence, it is useful to see any existing comment,
78
78
or any feeling of a need for a comment, as the sign that the code do not
79
79
express clearly enough its intent and can be improved.
80
80
81
- **.. but no code is perfect. ** Perfect code is a chimere , it exists only in
81
+ **.. but no code is perfect. ** Perfect code is a chimera , it exists only in
82
82
our dreams. In real life, a code base is full of trade offs, and comments are
83
83
often needed in the most difficult parts. Moreover, any special case, any
84
84
obscure hack, any monkey patch and any ugly workaround MUST be signaled and
@@ -87,15 +87,15 @@ explained by a proper comment. This should be enforced by the law!
87
87
**TODOs ** are special comments that a developer write as a reminder for later
88
88
use. It is said that its original intent was that someone might, one day,
89
89
search for the string "TODO" in the code base and actually roll their sleeves
90
- and start *to do the TODOs *. There is no avalaible record that it ever
90
+ and start *to do the TODOs *. There is no available record that it ever
91
91
happened. However, TODOs comment are still very useful, because they mark the
92
92
current limits of the code, and it is not unlikely that, when required to add a
93
93
new behavior to the actual code, looking at the TODOs will show where to start.
94
94
95
95
**Do not use triple-quote strings to comment code. ** A common operation when
96
- modifiying code is to comment out some lines or even a full function or class
96
+ modifying code is to comment out some lines or even a full function or class
97
97
definition. This can be done by adding triple-quotes around the code block to
98
- be skipped, but this is not a good pratice , because line-oriented command-line
98
+ be skipped, but this is not a good practice , because line-oriented command-line
99
99
tools such as ``grep `` will not be aware that the commented code is inactive.
100
100
It is better to add hashes at the proper indentation level for every commented
101
101
line. Good editors allow to do this with few keystrokes (ctrl-v on Vim).
@@ -156,7 +156,7 @@ Block comment styling should be used when commenting out multiple lines of code.
156
156
Paragraphs inside a block comment are separated by a line containing a
157
157
single #.
158
158
159
- Inline comments are used for individual lines and should be used sparingly.: ::
159
+ In-line comments are used for individual lines and should be used sparingly.: ::
160
160
161
161
An inline comment is a comment on the same line as a statement. Inline
162
162
comments should be separated by at least two spaces from the statement.
0 commit comments