Fix Str.startsWith std definition

This commit is contained in:
Chadtech 2020-11-22 14:00:01 -05:00
parent 385d0fda9f
commit b615b0127c

View file

@ -414,7 +414,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
// startsWith : Str, Str -> Bool
add_type(
Symbol::STR_STARTS_WITH,
SolvedType::Func(vec![str_type(), str_type()], Box::new(bool_type())),
top_level_function(vec![str_type(), str_type()], Box::new(bool_type())),
);
// countGraphemes : Str -> Int