Skip to content

Commit e431e77

Browse files
committed
Fix links to tools
1 parent 621a273 commit e431e77

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/source_values.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ In this example, the LED is lit only if both buttons are pressed (like an
203203

204204
.. literalinclude:: examples/combining_sources.py
205205

206-
Similarly, :func:`any_values` with two buttons would simulate an `OR`_ gate.
206+
Similarly, :func:`~tools.any_values` with two buttons would simulate an `OR`_
207+
gate.
207208

208209
.. _AND: https://en.wikipedia.org/wiki/AND_gate
209210
.. _OR: https://en.wikipedia.org/wiki/OR_gate
@@ -302,8 +303,8 @@ To include reverse direction, scale the potentiometer values from 0->1 to -1->1:
302303
.. literalinclude:: examples/robot_pots_2.py
303304

304305
Note that this example uses the built-in :func:`zip` rather than the tool
305-
:func:`zip_values` as the :func:`scaled` tool yields values which do not need
306-
converting, just zipping. Also note that this use of :func:`zip` will not work
307-
in Python 2, instead use `izip`_.
306+
:func:`~tools.zip_values` as the :func:`~tools.scaled` tool yields values which
307+
do not need converting, just zipping. Also note that this use of :func:`zip`
308+
will not work in Python 2, instead use `izip`_.
308309

309310
.. _izip: https://docs.python.org/2/library/itertools.html#itertools.izip

0 commit comments

Comments
 (0)