[FIX][DOC] func signature in example code