mirror of
https://github.com/golang/go
synced 2024-11-18 00:54:45 -07:00
blog: use serial comma in long author lists
This is the Go blog house style for the rest of the text. We just missed the author list, presumably because it was less code (only two entries still has no comma). Change-Id: I8bb1ab582d6e300d521ac471736ee8ab6e0f61ec Reviewed-on: https://go-review.googlesource.com/c/tools/+/225517 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
a49f79bcc2
commit
644a21fb14
@ -159,6 +159,9 @@ func authors(authors []present.Author) string {
|
||||
for i, a := range authors {
|
||||
if i > 0 {
|
||||
if i == last {
|
||||
if len(authors) > 2 {
|
||||
b.WriteString(",")
|
||||
}
|
||||
b.WriteString(" and ")
|
||||
} else {
|
||||
b.WriteString(", ")
|
||||
|
Loading…
Reference in New Issue
Block a user