mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
table: minor optimization of types.v (#7419)
This commit is contained in:
@ -431,7 +431,11 @@ pub enum Kind {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn (t &TypeSymbol) str() string {
|
pub fn (t &TypeSymbol) str() string {
|
||||||
|
if t.kind in [.array, .array_fixed] {
|
||||||
return t.name.replace('array_', '[]')
|
return t.name.replace('array_', '[]')
|
||||||
|
} else {
|
||||||
|
return t.name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[inline]
|
[inline]
|
||||||
|
Reference in New Issue
Block a user