Fix comment

This commit is contained in:
Ayaz Hafiz 2023-01-13 10:50:26 -06:00
parent a47841d426
commit 96b2b7a0c5
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -931,9 +931,9 @@ fn can_annotation_help(
if tags.is_empty() {
match ext {
Some(_) => {
// just `a` does not mean the same as `{}a`, so even
// if there are no fields, still make this a `Record`,
// not an EmptyRec
// just `a` does not mean the same as `[]`, so even
// if there are no fields, still make this a `TagUnion`,
// not an EmptyTagUnion
Type::TagUnion(Default::default(), TypeExtension::from_type(ext_type))
}