mirror of https://github.com/tidwall/tile38.git
Merge branch 'master' into wherein
This commit is contained in:
commit
f738e40c7b
|
@ -105,7 +105,11 @@ func (a Argument) String() string {
|
|||
subs = strings.TrimSpace(subs)
|
||||
s += " " + subs
|
||||
if a.Variadic {
|
||||
if len(names) == 0 {
|
||||
s += " [" + subs + " ...]"
|
||||
} else {
|
||||
s += " [" + names[len(names)-1] + " ...]"
|
||||
}
|
||||
}
|
||||
if a.Multiple {
|
||||
s += " ..."
|
||||
|
|
|
@ -105,7 +105,11 @@ func (a Argument) String() string {
|
|||
subs = strings.TrimSpace(subs)
|
||||
s += " " + subs
|
||||
if a.Variadic {
|
||||
if len(names) == 0 {
|
||||
s += " [" + subs + " ...]"
|
||||
} else {
|
||||
s += " [" + names[len(names)-1] + " ...]"
|
||||
}
|
||||
}
|
||||
if a.Multiple {
|
||||
s += " ..."
|
||||
|
|
Loading…
Reference in New Issue