From: Rob Pike
Date: Thu, 17 Feb 2011 06:35:31 +0000 (-0800)
Subject: Effective Go: stress that comments are uninterpreted text
X-Git-Tag: weekly.2011-02-24~78
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6095ff3864d73e69c11196c0ea1bb5973bcd24bd;p=gostls13.git
Effective Go: stress that comments are uninterpreted text
that should look in godoc.
R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/4192041
---
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.