diff options
Diffstat (limited to 'src/base/string/replace.c')
-rw-r--r-- | src/base/string/replace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/string/replace.c b/src/base/string/replace.c index 127daed..979c385 100644 --- a/src/base/string/replace.c +++ b/src/base/string/replace.c @@ -4,13 +4,13 @@ // edits are done in place and modify the string. // NOTE: as of now strings from and to must be the same size. void -str·replace(string s, const byte* from, const byte* to) +string·replace(string s, byte* from, byte* to) { vlong fromL = strlen(from); vlong toL = strlen(to); if (toL != fromL) { panicf("different sized replacement string not supported"); } - vlong l = str·len(s); + vlong l = string·len(s); vlong i = l; vlong j = l; |