]> Cypherpunks repositories - gostls13.git/commitdiff
Effective Go: stress that comments are uninterpreted text
authorRob Pike <r@golang.org>
Thu, 17 Feb 2011 06:35:31 +0000 (22:35 -0800)
committerRob Pike <r@golang.org>
Thu, 17 Feb 2011 06:35:31 +0000 (22:35 -0800)
that should look in godoc.

R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/4192041

doc/effective_go.html

index 8f94f467be6c8b3361371346459d26698922330f..a32179298e8de6869213c0cb9e49647df17293d5 100644 (file)
@@ -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&mdash;<code>godoc</code>, like <code>gofmt</code>,
 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 <code>_this_</code> will reproduce <i>verbatim</i> and should
 not be used.
+Depending on the context, <code>godoc</code> 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.
 </p>
 
 <p>