[doc] fix code snippets