string_more: add missing pub from crop_string
This commit is contained in:
parent
bb6a044182
commit
9fe3672514
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user