mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 03:18:06 +09:00
docs: Minor example change in Code_Overview.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -318,7 +318,7 @@ The following may also be useful:
|
|||||||
recommended to always assign and manipulate that variable with
|
recommended to always assign and manipulate that variable with
|
||||||
floating point constants (and never use integer constants). For
|
floating point constants (and never use integer constants). For
|
||||||
example, prefer `self.speed = 1.` over `self.speed = 1`, and prefer
|
example, prefer `self.speed = 1.` over `self.speed = 1`, and prefer
|
||||||
`self.speed *= 2.` over `self.speed *= 2`. Consistent use of
|
`self.speed = 2. * x` over `self.speed = 2 * x`. Consistent use of
|
||||||
floating point values can avoid hard to debug quirks in Python type
|
floating point values can avoid hard to debug quirks in Python type
|
||||||
conversions.
|
conversions.
|
||||||
* If submitting the module for inclusion in the main Klipper code, be
|
* If submitting the module for inclusion in the main Klipper code, be
|
||||||
|
|||||||
Reference in New Issue
Block a user