Skip to content

Commit 27bd922

Browse files
committed
Changed the format of the example code
1 parent 6df688f commit 27bd922

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@ framework.
8484

8585
To use it just import the parser:
8686

87-
>>> from dice_notation.parser import DiceParser
87+
from dice_notation.parser import DiceParser
8888

8989
And then use it to parse a dice notation expression:
9090

91-
>>> parser = DiceParser()
92-
>>> dice = parser.parse('1d6+2')
91+
parser = DiceParser()
92+
dice = parser.parse('1d6+2')
9393

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

97-
>>> print(dice.roll())
98-
>>> print(dice.roll())
97+
print(dice.roll())
98+
print(dice.roll())
9999

100100
Collaborate
101101
-----------

docs/source/usage.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Usage
44

55
To use the parser just import it:
66

7-
>>> from dice_notation.parser import DiceParser
7+
from dice_notation.parser import DiceParser
88

99
And then parse a dice notation expression:
1010

11-
>>> parser = DiceParser()
12-
>>> dice = parser.parse('1d6+2')
11+
parser = DiceParser()
12+
dice = parser.parse('1d6+2')
1313

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

17-
>>> print(dice.roll())
18-
>>> print(dice.roll())
17+
print(dice.roll())
18+
print(dice.roll())

0 commit comments

Comments
 (0)