mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 17:17:26 +00:00
Make sure to drop suffix from symbols exposed to the host
This commit is contained in:
parent
be0afbce25
commit
e3c6b756d3
4 changed files with 22 additions and 15 deletions
|
@ -156,6 +156,10 @@ impl Symbol {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn as_unsuffixed_str(self, interns: &Interns) -> &str {
|
||||
self.as_str(interns).trim_end_matches('!')
|
||||
}
|
||||
|
||||
pub const fn as_u64(self) -> u64 {
|
||||
u64::from_ne_bytes(self.to_ne_bytes())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue