From 644a21fb14497d4644c9223837edc271c63c58f5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 25 Mar 2020 15:25:32 -0400 Subject: [PATCH] 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 Reviewed-by: Austin Clements TryBot-Result: Gobot Gobot --- blog/blog.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blog/blog.go b/blog/blog.go index 2310d62fe2..a87401cb0c 100644 --- a/blog/blog.go +++ b/blog/blog.go @@ -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(", ")