Skip to content

Commit 7c4d9d6

Browse files
committed
Corrected code blocks format
1 parent 27bd922 commit 7c4d9d6

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ Usage
8282
The application has been coded in Python, and does not require any particular
8383
framework.
8484

85-
To use it just import the parser:
85+
To use it just import the parser::
8686

8787
from dice_notation.parser import DiceParser
8888

89-
And then use it to parse a dice notation expression:
89+
And then use it to parse a dice notation expression::
9090

9191
parser = DiceParser()
9292
dice = parser.parse('1d6+2')
9393

9494
The result can be accessed just by calling the 'roll' method as many times as
95-
needed, which will generate a new random value each time it is called.
95+
needed, which will generate a new random value each time it is called::
9696

9797
print(dice.roll())
9898
print(dice.roll())

docs/source/usage.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
Usage
33
=====
44

5-
To use the parser just import it:
5+
To use the parser just import it::
66

77
from dice_notation.parser import DiceParser
88

9-
And then parse a dice notation expression:
9+
And then parse a dice notation expression::
1010

1111
parser = DiceParser()
1212
dice = parser.parse('1d6+2')
1313

1414
The result can be accessed just by calling the 'roll' method as many times as
15-
needed, which will generate a new random value each time it is called.
15+
needed, which will generate a new random value each time it is called::
1616

1717
print(dice.roll())
1818
print(dice.roll())
19+

0 commit comments

Comments
 (0)