From 6095ff3864d73e69c11196c0ea1bb5973bcd24bd Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 16 Feb 2011 22:35:31 -0800 Subject: [PATCH] Effective Go: stress that comments are uninterpreted text that should look in godoc. R=rsc, dsymonds CC=golang-dev https://golang.org/cl/4192041 --- doc/effective_go.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index 8f94f467be..a32179298e 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -194,9 +194,13 @@ Comments do not need extra formatting such as banners of stars. The generated output may not even be presented in a fixed-width font, so don't depend on spacing for alignment—godoc, like gofmt, takes care of that. -Finally, the comments are uninterpreted plain text, so HTML and other +The comments are uninterpreted plain text, so HTML and other annotations such as _this_ will reproduce verbatim and should not be used. +Depending on the context, godoc might not even +reformat comments, so make sure they look good straight up: +use correct spelling, punctuation, and sentence structure, +fold long lines, and so on.

-- 2.50.0