1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
19
`Rename io.Copyn to io.CopyN.
21
http://codereview.appspot.com/5157045
25
func ioCopyN(f *ast.File) bool {
26
if !imports(f, "io") {
31
walk(f, func(n interface{}) {
32
if expr, ok := n.(ast.Expr); ok {
33
if isPkgDot(expr, "io", "Copyn") {
34
expr.(*ast.SelectorExpr).Sel.Name = "CopyN"