mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg
R=r, gri CC=golang-dev https://golang.org/cl/156115
This commit is contained in:
parent
aa4c638b7b
commit
9ac4449cb2
118 changed files with 308 additions and 308 deletions
|
|
@ -65,7 +65,7 @@ func (p *Prog) loadDebugInfo() {
|
|||
if len(line) < 9 || line[0:9] != "cgo-test:" {
|
||||
continue
|
||||
}
|
||||
line = line[9:len(line)];
|
||||
line = line[9:];
|
||||
colon := strings.Index(line, ":");
|
||||
if colon < 0 {
|
||||
continue
|
||||
|
|
@ -148,7 +148,7 @@ func (p *Prog) loadDebugInfo() {
|
|||
if !ok || t == nil {
|
||||
fatal("internal error: %s has non-pointer type", name)
|
||||
}
|
||||
i, err := strconv.Atoi(name[7:len(name)]);
|
||||
i, err := strconv.Atoi(name[7:]);
|
||||
if err != nil {
|
||||
fatal("malformed __cgo__ name: %s", name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue