Update docs/examples.rst: add missing import statement for @frozen (#943)

* Update docs/examples.rst: add missing import statement for @frozen

* Update docs/examples.rst: change attr to attrs for frozen import statement

* Fix an indention error in init.rst
2 files changed