table: minor optimization of types.v (#7419)
parent
af9766a7d6
commit
829334890b
|
@ -431,7 +431,11 @@ pub enum Kind {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (t &TypeSymbol) str() string {
|
pub fn (t &TypeSymbol) str() string {
|
||||||
return t.name.replace('array_', '[]')
|
if t.kind in [.array, .array_fixed] {
|
||||||
|
return t.name.replace('array_', '[]')
|
||||||
|
} else {
|
||||||
|
return t.name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[inline]
|
[inline]
|
||||||
|
|
Loading…
Reference in New Issue