[doc] fix code example