Fixes some be typo (#4714)

This commit is contained in:
Zhengguo Yang
2020-10-13 09:37:15 +08:00
committed by GitHub
parent d73d205de7
commit 75e0ba32a1
130 changed files with 367 additions and 366 deletions

View File

@ -77,7 +77,7 @@ StringVal StringFunctions::substring(
// create index indicate every char start byte
// e.g. "hello word 你好" => [0,1,2,3,4,5,6,7,8,9,10,11,14] 你 and 好 are 3 bytes
// why use a vector as index? It is unnecessary if there is no negative pos val,
// but if has pos is negative it is not easy to determin where to start, so need a
// but if has pos is negative it is not easy to determine where to start, so need a
// index save every character's length
size_t byte_pos = 0;
std::vector<size_t> index;