mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Update JavaScript style guide to 2.28:
- Fix typo. Update Python style guide to 2.29: - Fix indirect setter.
This commit is contained in:
parent
e33361fcd3
commit
7f8919375d
|
@ -3,7 +3,7 @@
|
||||||
<GUIDE title="Google JavaScript Style Guide">
|
<GUIDE title="Google JavaScript Style Guide">
|
||||||
<p class="revision">
|
<p class="revision">
|
||||||
|
|
||||||
Revision 2.27
|
Revision 2.28
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<address>
|
<address>
|
||||||
|
@ -345,7 +345,7 @@
|
||||||
<p><code>eval()</code> makes for confusing semantics and is dangerous
|
<p><code>eval()</code> makes for confusing semantics and is dangerous
|
||||||
to use if the string being <code>eval()</code>'d contains user input.
|
to use if the string being <code>eval()</code>'d contains user input.
|
||||||
There's usually a better, more clear, safer way to write your code, so
|
There's usually a better, more clear, safer way to write your code, so
|
||||||
its used is generally not permitted. However <code>eval</code> makes
|
its use is generally not permitted. However <code>eval</code> makes
|
||||||
deserialization considerably easier than the non-<code>eval</code>
|
deserialization considerably easier than the non-<code>eval</code>
|
||||||
alternatives, so its use is acceptable for this task (for example, to
|
alternatives, so its use is acceptable for this task (for example, to
|
||||||
evaluate RPC responses).</p>
|
evaluate RPC responses).</p>
|
||||||
|
@ -3194,7 +3194,7 @@
|
||||||
</PARTING_WORDS>
|
</PARTING_WORDS>
|
||||||
|
|
||||||
<p align="right">
|
<p align="right">
|
||||||
Revision 2.27
|
Revision 2.28
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@
|
||||||
<H1>Google Python Style Guide</H1>
|
<H1>Google Python Style Guide</H1>
|
||||||
<p align="right">
|
<p align="right">
|
||||||
|
|
||||||
Revision 2.28
|
Revision 2.29
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<address>
|
<address>
|
||||||
|
@ -842,7 +842,7 @@ from sound.effects import echo
|
||||||
|
|
||||||
<span class="external"> </span>def ___set_area(self, area):
|
<span class="external"> </span>def ___set_area(self, area):
|
||||||
<span class="external"> </span>"""Indirect setter for 'area' property."""
|
<span class="external"> </span>"""Indirect setter for 'area' property."""
|
||||||
<span class="external"> </span>self._SetArea(area)
|
<span class="external"> </span>self.__set_area(area)
|
||||||
|
|
||||||
<span class="external"> </span>area = property(___get_area, ___set_area,
|
<span class="external"> </span>area = property(___get_area, ___set_area,
|
||||||
<span class="external"> </span> doc="""Gets or sets the area of the square.""")
|
<span class="external"> </span> doc="""Gets or sets the area of the square.""")
|
||||||
|
@ -2112,7 +2112,7 @@ Don'<span class="external"></span>t do this.
|
||||||
|
|
||||||
|
|
||||||
<p align="right">
|
<p align="right">
|
||||||
Revision 2.28
|
Revision 2.29
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user