mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Rename startsWithCodePt to startsWithScalar
This commit is contained in:
parent
c9e52b8311
commit
af05723d35
13 changed files with 30 additions and 30 deletions
|
@ -314,7 +314,7 @@ pub const STR_STR_SPLIT_IN_PLACE: &str = "roc_builtins.str.str_split_in_place";
|
|||
pub const STR_TO_SCALARS: &str = "roc_builtins.str.to_scalars";
|
||||
pub const STR_COUNT_GRAPEHEME_CLUSTERS: &str = "roc_builtins.str.count_grapheme_clusters";
|
||||
pub const STR_STARTS_WITH: &str = "roc_builtins.str.starts_with";
|
||||
pub const STR_STARTS_WITH_CODE_PT: &str = "roc_builtins.str.starts_with_code_point";
|
||||
pub const STR_STARTS_WITH_SCALAR: &str = "roc_builtins.str.starts_with_scalar";
|
||||
pub const STR_ENDS_WITH: &str = "roc_builtins.str.ends_with";
|
||||
pub const STR_NUMBER_OF_BYTES: &str = "roc_builtins.str.number_of_bytes";
|
||||
pub const STR_FROM_INT: IntrinsicName = int_intrinsic!("roc_builtins.str.from_int");
|
||||
|
|
|
@ -894,9 +894,9 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
Box::new(bool_type())
|
||||
);
|
||||
|
||||
// startsWithCodePt : Str, U32 -> Bool
|
||||
// startsWithScalar : Str, U32 -> Bool
|
||||
add_top_level_function_type!(
|
||||
Symbol::STR_STARTS_WITH_CODE_PT,
|
||||
Symbol::STR_STARTS_WITH_SCALAR,
|
||||
vec![str_type(), u32_type()],
|
||||
Box::new(bool_type())
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue