mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
update code to follow new semicolon rules:
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
This commit is contained in:
parent
7ee60b174d
commit
983f06bdb6
38 changed files with 430 additions and 430 deletions
|
|
@ -16,7 +16,7 @@ var ErrorTab = new(map[int64] *Error);
|
|||
|
||||
export func NewError(s string) *Error {
|
||||
e := new(Error);
|
||||
e.s = s
|
||||
e.s = s;
|
||||
return e
|
||||
}
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ export func ErrnoToError(errno int64) *Error {
|
|||
if errno == 0 {
|
||||
return nil
|
||||
}
|
||||
err, ok := ErrorTab[errno]
|
||||
err, ok := ErrorTab[errno];
|
||||
if ok {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue