Indent code examples correctly
Fix @spec line
Use if instead of case