Merge branch 'master' into wherein

This commit is contained in:
Alex Roitman 2017-08-24 10:15:22 -07:00 committed by GitHub
commit f738e40c7b
2 changed files with 10 additions and 2 deletions

View File

@ -105,7 +105,11 @@ func (a Argument) String() string {
subs = strings.TrimSpace(subs)
s += " " + subs
if a.Variadic {
s += " [" + subs + " ...]"
if len(names) == 0 {
s += " [" + subs + " ...]"
} else {
s += " [" + names[len(names)-1] + " ...]"
}
}
if a.Multiple {
s += " ..."

View File

@ -105,7 +105,11 @@ func (a Argument) String() string {
subs = strings.TrimSpace(subs)
s += " " + subs
if a.Variadic {
s += " [" + subs + " ...]"
if len(names) == 0 {
s += " [" + subs + " ...]"
} else {
s += " [" + names[len(names)-1] + " ...]"
}
}
if a.Multiple {
s += " ..."