Use _ over # when exporting linkable symbols

This commit is contained in:
Richard Feldman 2020-09-28 18:19:57 -04:00
parent 740a2f0f77
commit 4ec16749a0

View file

@ -10,7 +10,7 @@ impl LayoutId {
// Returns something like "foo#1" when given a symbol that interns to "foo"
// and a LayoutId of 1.
pub fn to_symbol_string(self, symbol: Symbol, interns: &Interns) -> String {
format!("{}#{}", symbol.ident_string(interns), self.0)
format!("{}_{}", symbol.ident_string(interns), self.0)
}
}