Skip to content

Commit

Permalink
Fix the class name (#171)
Browse files Browse the repository at this point in the history
* Fix the class name

`GetTest` is the right class name.

* Updated the output
  • Loading branch information
DaleSeo authored and yasoob committed Oct 28, 2018
1 parent e0e5507 commit 512de0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ Implementing **getitem** in a class allows its instances to use the []
return self.info[i]
foo = GetTest()
foo['name']
# Output: 'Yasoob'
Expand Down

0 comments on commit 512de0b

Please sign in to comment.