fix typo
Format example code as ruby