summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMetallicow <metaliobovinus@gmail.com>2014-06-03 07:46:12 -0600
committerMetallicow <metaliobovinus@gmail.com>2014-06-03 07:46:12 -0600
commit3d5ffa83180b216fc44fb151771141c12a9c425b (patch)
tree4b5be9a3622dd5f21962ccd051c733c84ccb0d7a
parent07995e947967b7159cf88c48c2f09463015c1d45 (diff)
downloadmicropython-3d5ffa83180b216fc44fb151771141c12a9c425b.tar.gz
micropython-3d5ffa83180b216fc44fb151771141c12a9c425b.zip
remove `__doc__ =` and fix tweak doc diffs
-rw-r--r--examples/switch.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/switch.py b/examples/switch.py
index 23c4b5e2b0..0efaf22675 100644
--- a/examples/switch.py
+++ b/examples/switch.py
@@ -1,4 +1,4 @@
-__doc__ = """
+"""
switch.py
=========
@@ -9,7 +9,7 @@ Example Usage::
Micro Python v1.0.1 on 2014-05-12; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>> import switch
- >>> switch.run_loop([2, 3])
+ >>> switch.run_loop()
Loop started.
Press Ctrl+C to break out of the loop.
@@ -28,8 +28,8 @@ def run_loop(leds=all_leds):
"""
Start the loop.
- :param `use_leds`: Which LEDs to light up upon switch press.
- :type `use_leds`: sequence of LED objects
+ :param `leds`: Which LEDs to light up upon switch press.
+ :type `leds`: sequence of LED objects
"""
print('Loop started.\nPress Ctrl+C to break out of the loop.')
while 1: