Skip to content

Commit

Permalink
change to private fns
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Sep 12, 2024
1 parent d6ce544 commit b38bde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/builtin/string.v
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@ pub fn (s string) trim(cutset string) string {
}

@[direct_array_access]
pub fn (s string) trim_chars(cutset string) string {
fn (s string) trim_chars(cutset string) string {
mut pos_left := 0
mut pos_right := s.len - 1
mut cs_match := true
Expand Down Expand Up @@ -1756,7 +1756,7 @@ pub fn (s string) trim_chars(cutset string) string {
}

@[direct_array_access]
pub fn (s string) trim_runes(cutset string) string {
fn (s string) trim_runes(cutset string) string {
s_runes := s.runes()
c_runes := cutset.runes()
mut pos_left := 0
Expand Down

0 comments on commit b38bde9

Please sign in to comment.