diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
commit | 4cecda6c347bd6902b960c6a35a967add7070b0d (patch) | |
tree | a462e224ff41ec9f3eb1a0b6e815806f9e8804ad /src/cmd/gofix/oserrorstring.go | |
parent | 6c7ca6e4d4e26e4c8cbe0d183966011b3b088a0a (diff) | |
download | golang-4cecda6c347bd6902b960c6a35a967add7070b0d.tar.gz |
Imported Upstream version 2012.01.27upstream-weekly/2012.01.27
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 |