mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
remove semis after statements in one-statement statement lists
R=rsc, r http://go/go-review/1025029
This commit is contained in:
parent
18ccbc69f8
commit
40621d5c0d
408 changed files with 7859 additions and 7859 deletions
|
|
@ -7,7 +7,7 @@ package syscall
|
|||
|
||||
func str(val int) string { // do it here rather than with fmt to avoid dependency
|
||||
if val < 0 {
|
||||
return "-"+str(-val);
|
||||
return "-"+str(-val)
|
||||
}
|
||||
var buf [32]byte; // big enough for int64
|
||||
i := len(buf)-1;
|
||||
|
|
@ -22,7 +22,7 @@ func str(val int) string { // do it here rather than with fmt to avoid dependenc
|
|||
|
||||
func Errstr(errno int) string {
|
||||
if errno < 0 || errno >= int(len(errors)) {
|
||||
return "error "+str(errno);
|
||||
return "error "+str(errno)
|
||||
}
|
||||
return errors[errno];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue