[doc] fix code examples again