From: Rob Pike Date: Wed, 26 Oct 2016 02:14:20 +0000 (-0700) Subject: doc/effectivego: reword confusing sentence X-Git-Tag: go1.8beta1~601 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cec84f7309f9ae962a326d60f19c9c7881749012;p=gostls13.git doc/effectivego: reword confusing sentence For some reason git won't let me write doc/effective_go.html: reword confusing sentence or even doc/effective_go: reword confusing sentence as the subject line for this CL, but that's not important. The actual CL just rewrites one sentence and adds an option to grep in the associated example. Fixes #15875 Change-Id: Iee159ea751caf4b73eacf3dfc86e29032646373f Reviewed-on: https://go-review.googlesource.com/32110 Reviewed-by: Ian Lance Taylor --- diff --git a/doc/effective_go.html b/doc/effective_go.html index e07c27ca2f..e3f3124631 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -245,15 +245,15 @@ func Compile(str string) (*Regexp, error) {

-If the name always begins the comment, the output of godoc -can usefully be run through grep. +If every doc comment begins with the name of the item it describes, +the output of godoc can usefully be run through grep. Imagine you couldn't remember the name "Compile" but were looking for the parsing function for regular expressions, so you ran the command,

-$ godoc regexp | grep parse
+$ godoc regexp | grep -i parse