Skip to content

Commit 1d5edd3

Browse files
authored
fix: fix typos in hybridse udf docstrings (#4106)
1 parent 4c4e838 commit 1d5edd3

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

hybridse/src/udf/default_udf_library.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,9 @@ void DefaultUdfLibrary::InitStringUdf() {
874874
@endcode
875875
876876
@param str
877-
@param pos define the begining of the substring.
877+
@param pos define the beginning of the substring.
878878
879-
- If `pos` is positive, the begining of the substring is `pos` charactors from the start of string.
879+
- If `pos` is positive, the beginning of the substring is `pos` characters from the start of string.
880880
- If `pos` is negative, the beginning of the substring is `pos` characters from the end of the string, rather than the beginning.
881881
882882
@since 0.1.0)");
@@ -900,9 +900,9 @@ void DefaultUdfLibrary::InitStringUdf() {
900900
@endcode
901901
902902
@param str
903-
@param pos: define the begining of the substring.
903+
@param pos: define the beginning of the substring.
904904
905-
- If `pos` is positive, the begining of the substring is `pos` charactors from the start of string.
905+
- If `pos` is positive, the beginning of the substring is `pos` characters from the start of string.
906906
- If `pos` is negative, the beginning of the substring is `pos` characters from the end of the string, rather than the beginning.
907907
908908
@param len length of substring. If len is less than 1, the result is the empty string.
@@ -947,8 +947,8 @@ void DefaultUdfLibrary::InitStringUdf() {
947947
948948
@param substr
949949
@param str
950-
@param pos: define the begining search position of the str.
951-
- Negetive value is illegal and will return 0 directly;
950+
@param pos: define the beginning search position of the str.
951+
- Negative value is illegal and will return 0 directly;
952952
- If substr is "" and pos less equal len(str) + 1, return pos, other case return 0;
953953
)");
954954

hybridse/src/udf/udf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ void bool_to_string(bool v, StringRef *output);
397397

398398
// transform string into integral
399399
// base is default to 10, 16 if string starts with '0x' or '0X', other base is not considered.
400-
// for hex string, it's parsed unsigned, add minus('-') to the very begining for negative hex
400+
// for hex string, it's parsed unsigned, add minus('-') to the very beginning for negative hex
401401
// returns (status, int64)
402402
struct StrToIntegral {
403403
std::pair<absl::Status, int64_t> operator()(absl::string_view in) {

0 commit comments

Comments
 (0)