From 5083eedf88de13dc661f78077d9d7b7eaeebcf78 Mon Sep 17 00:00:00 2001 From: Anschel Schaffer-Cohen Date: Fri, 12 Nov 2010 09:57:46 -0800 Subject: [PATCH] Fixed recover() documentation. Added a "return" to the end of an example which previously threw a compile error if used. R=golang-dev, gri CC=golang-dev https://golang.org/cl/3052041 --- doc/go_spec.html | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/go_spec.html b/doc/go_spec.html index 6c9283dd33f..2b2817d9cbe 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -4744,6 +4744,7 @@ func IsPrintable(s string) (ok bool) { // The return value will be true normally, false if a panic occurred. }() panicIfNotPrintable(s) // will panic if validations fails. + return }