Rename trimLeft to trimStart and trimRight to trimEnd

This commit is contained in:
Hannes 2023-05-22 10:21:08 +08:00
parent d10d71cdec
commit 97fa6758d0
16 changed files with 110 additions and 110 deletions

View file

@ -617,7 +617,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
call_str_bitcode_fn(env, &[string], &[], BitcodeReturns::Str, bitcode::STR_TRIM)
}
StrTrimLeft => {
StrTrimStart => {
// Str.trim : Str -> Str
arguments!(string);
@ -626,10 +626,10 @@ pub(crate) fn run_low_level<'a, 'ctx>(
&[string],
&[],
BitcodeReturns::Str,
bitcode::STR_TRIM_LEFT,
bitcode::STR_TRIM_START,
)
}
StrTrimRight => {
StrTrimEnd => {
// Str.trim : Str -> Str
arguments!(string);
@ -638,7 +638,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
&[string],
&[],
BitcodeReturns::Str,
bitcode::STR_TRIM_RIGHT,
bitcode::STR_TRIM_END,
)
}
StrWithCapacity => {