Skip to content

Commit 644a21f

Browse files
committed
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 <[email protected]> Reviewed-by: Austin Clements <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent a49f79b commit 644a21f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

blog/blog.go

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ func authors(authors []present.Author) string {
159159
for i, a := range authors {
160160
if i > 0 {
161161
if i == last {
162+
if len(authors) > 2 {
163+
b.WriteString(",")
164+
}
162165
b.WriteString(" and ")
163166
} else {
164167
b.WriteString(", ")

0 commit comments

Comments
 (0)