diff options
Diffstat (limited to 'src/cmd/gofix/oserrorstring.go')
-rw-r--r-- | src/cmd/gofix/oserrorstring.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cmd/gofix/oserrorstring.go b/src/cmd/gofix/oserrorstring.go index db39ee9dc..a75a2c12d 100644 --- a/src/cmd/gofix/oserrorstring.go +++ b/src/cmd/gofix/oserrorstring.go @@ -8,8 +8,13 @@ import ( "go/ast" ) +func init() { + register(oserrorstringFix) +} + var oserrorstringFix = fix{ "oserrorstring", + "2011-06-22", oserrorstring, `Replace os.ErrorString() conversions with calls to os.NewError(). @@ -17,10 +22,6 @@ http://codereview.appspot.com/4607052 `, } -func init() { - register(oserrorstringFix) -} - func oserrorstring(f *ast.File) bool { if !imports(f, "os") { return false |