summaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/unsafe.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/gc/unsafe.go')
-rw-r--r--src/cmd/compile/internal/gc/unsafe.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/gc/unsafe.go b/src/cmd/compile/internal/gc/unsafe.go
index fc6ed1fe92..aca9759388 100644
--- a/src/cmd/compile/internal/gc/unsafe.go
+++ b/src/cmd/compile/internal/gc/unsafe.go
@@ -21,7 +21,7 @@ func unsafenmagic(nn *Node) *Node {
}
if args.Len() == 0 {
- Yyerror("missing argument for %v", s)
+ yyerror("missing argument for %v", s)
return nil
}
@@ -60,7 +60,7 @@ func unsafenmagic(nn *Node) *Node {
case ODOT, ODOTPTR:
break
case OCALLPART:
- Yyerror("invalid expression %v: argument is a method value", nn)
+ yyerror("invalid expression %v: argument is a method value", nn)
goto ret
default:
goto bad
@@ -74,7 +74,7 @@ func unsafenmagic(nn *Node) *Node {
// but accessing f must not otherwise involve
// indirection via embedded pointer types.
if r1.Left != base {
- Yyerror("invalid expression %v: selector implies indirection of embedded %v", nn, r1.Left)
+ yyerror("invalid expression %v: selector implies indirection of embedded %v", nn, r1.Left)
goto ret
}
fallthrough
@@ -92,12 +92,12 @@ func unsafenmagic(nn *Node) *Node {
}
if args.Len() > 1 {
- Yyerror("extra arguments for %v", s)
+ yyerror("extra arguments for %v", s)
}
goto ret
bad:
- Yyerror("invalid expression %v", nn)
+ yyerror("invalid expression %v", nn)
ret:
// any side effects disappear; ignore init