diff options
author | Rob Pike <r@golang.org> | 2011-02-01 12:47:35 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-02-01 12:47:35 -0800 |
commit | ebae8d362a0a14f95c3aff11be46b6048e8ea1c1 (patch) | |
tree | ac6e430df32d3d801c748c7e847faa5cc75556cd /doc/effective_go.html | |
parent | 4260f1f3fd92b6a9311526de268f8a3774c94c22 (diff) | |
download | go-ebae8d362a0a14f95c3aff11be46b6048e8ea1c1.tar.gz |
log: rename Exit* to Fatal*
This aligns the naming scheme with the testing package and
also lets govet work on more logging calls.
R=rsc
CC=golang-dev
http://codereview.appspot.com/4001048
Diffstat (limited to 'doc/effective_go.html')
-rw-r--r-- | doc/effective_go.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/effective_go.html b/doc/effective_go.html index e30251f6a..3f6f89b8b 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1653,7 +1653,7 @@ correctness of the program state before real execution begins. <pre> func init() { if USER == "" { - log.Exit("$USER not set") + log.Fatal("$USER not set") } if HOME == "" { HOME = "/usr/" + USER @@ -2871,7 +2871,7 @@ func main() { http.Handle("/", http.HandlerFunc(QR)) err := http.ListenAndServe(*addr, nil) if err != nil { - log.Exit("ListenAndServe:", err) + log.Fatal("ListenAndServe:", err) } } |