fix code snippets format