From a384a5313013d8ffda4db0e509cf798a080b3526 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 8 Jun 2016 16:21:28 +0300 Subject: docs/pyb.*: Use proper class case in method headers. Class designator will be used as is in indexes, so must match actual class name. --- docs/library/pyb.Switch.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/library/pyb.Switch.rst') diff --git a/docs/library/pyb.Switch.rst b/docs/library/pyb.Switch.rst index a9aef4e2e..bc62b6eee 100644 --- a/docs/library/pyb.Switch.rst +++ b/docs/library/pyb.Switch.rst @@ -29,11 +29,12 @@ Constructors Methods ------- -.. method:: switch() +.. method:: Switch.__call__() - Return the switch state: ``True`` if pressed down, ``False`` otherwise. + Call switch object directly to get its state: ``True`` if pressed down, + ``False`` otherwise. -.. method:: switch.callback(fun) +.. method:: Switch.callback(fun) Register the given function to be called when the switch is pressed down. If ``fun`` is ``None``, then it disables the callback. -- cgit v1.2.3