Fixes #957
This commit is contained in:
parent
aee319ee01
commit
6f7ffa9e6b
|
@ -340,9 +340,13 @@ impl Registry {
|
|||
}
|
||||
|
||||
write!(sdl, "union {} =", name).ok();
|
||||
for ty in possible_types {
|
||||
for (idx, ty) in possible_types.iter().enumerate() {
|
||||
if idx == 0 {
|
||||
write!(sdl, " {}", ty).ok();
|
||||
} else {
|
||||
write!(sdl, " | {}", ty).ok();
|
||||
}
|
||||
}
|
||||
writeln!(sdl).ok();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user