Skip to content

Commit c8ae4e4

Browse files
author
Alexander Lisianoi
committed
Fix minor code representations in users_guide.rst
Signed-off-by: Aleksadnr Lisianoi <[email protected]>
1 parent 46153bf commit c8ae4e4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/users_guide.rst

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ Other compositions like XOR and NAND are not implemented.
2525

2626
Installation
2727
------------
28-
::
29-
pip install boolean.py
3028

29+
.. code-block:: sh
30+
31+
pip install boolean.py
3132
3233
Creating boolean expressions
3334
----------------------------
@@ -39,7 +40,7 @@ an algebra, then use algebra attributes and methods to build expressions.
3940
You can build an expression from a string:
4041

4142
.. doctest:: boolean
42-
43+
4344
>>> import boolean
4445
>>> algebra = boolean.BooleanAlgebra()
4546
>>> algebra.parse('x & y')
@@ -59,7 +60,7 @@ You can build an expression from a Python expression:
5960
>>> x & y
6061
AND(Symbol('x'), Symbol('y'))
6162

62-
You can build an expression by using the algebra functions::
63+
You can build an expression by using the algebra functions:
6364

6465
.. doctest:: boolean
6566

@@ -254,9 +255,9 @@ Using boolean.py to define your own boolean algebra
254255
---------------------------------------------------
255256

256257
You can customize about everything in boolean.py to create your own custom algebra:
257-
1. You can subclass :class:`BooleanAlgebra` and override or extend the
258-
:meth:`tokenize`:: and :meth:`parse`:: method to parse custom expression creating
259-
your own mini expression language. Seen the tests for examples.
258+
1. You can subclass :class:`BooleanAlgebra` and override or extend the
259+
:meth:`tokenize` and :meth:`parse` methods to parse custom expressions creating
260+
your own mini expression language. See the tests for examples.
260261

261262
2. You can subclass the Symbol, NOT, AND and OR functions to add additional
262263
methods or for custom representations.

0 commit comments

Comments
 (0)