From 47f5a1feca50e3e524ff91528e629f8d16e19309 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 17 May 2016 17:31:53 -0400 Subject: [PATCH] Allow documentation comments to begin with A/An. This aligns with Go style. Change-Id: I773c6a2e8ddd8d40a8480efae86736c4b338d203 Reviewed-on: https://boringssl-review.googlesource.com/7958 Reviewed-by: Adam Langley --- util/doc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/doc.go b/util/doc.go index ace7a5803..fe5cdc279 100644 --- a/util/doc.go +++ b/util/doc.go @@ -409,6 +409,8 @@ func (config *Config) parseHeader(path string) (*HeaderFile, error) { // detected by starting with “The” or “These”. if len(comment) > 0 && !strings.HasPrefix(comment[0], name) && + !strings.HasPrefix(comment[0], "A " + name) && + !strings.HasPrefix(comment[0], "An " + name) && !strings.HasPrefix(decl, "#define ") && !strings.HasPrefix(comment[0], "The ") && !strings.HasPrefix(comment[0], "These ") {