Skip to content

Commit

Permalink
Fix typos in output of getitem example (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
erinwild authored and yasoob committed Oct 3, 2018
1 parent a5102f1 commit 50f50c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Implementing **getitem** in a class allows its instances to use the []
# Output: 'Yasoob'
foo['number']
# Output: 36845124
# Output: 12345812
Without the ``__getitem__`` method we would have got this error:

Expand Down

0 comments on commit 50f50c6

Please sign in to comment.