string_more: add missing pub from crop_string

This commit is contained in:
J Henry Waugh 2020-08-23 17:47:43 -05:00
parent bb6a044182
commit 9fe3672514

View File

@ -292,7 +292,7 @@ mod string_functions {
}
#[rhai_fn(name = "crop")]
fn crop_string(s: &mut ImmutableString, start: INT, len: INT) {
pub fn crop_string(s: &mut ImmutableString, start: INT, len: INT) {
let offset = if s.is_empty() || len <= 0 {
s.make_mut().clear();
return;