doc: add enum example
Merge pull request #46 from ihnorton/patch-1

doc: add enum example