Fixed #46: Removed "public" from code snippet.

See issue #46 for details.