mirror of
https://github.com/golang/go.git
synced 2025-10-30 00:00:56 +00:00
test: remove semiocolons.
The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev https://golang.org/cl/2157041
This commit is contained in:
parent
cd8f4cd206
commit
4f61fc96b2
88 changed files with 2512 additions and 2516 deletions
|
|
@ -13,8 +13,8 @@ import "unsafe"
|
|||
var x byte
|
||||
|
||||
func main() {
|
||||
var p *[1<<30]byte = nil;
|
||||
x = 123;
|
||||
var p *[1<<30]byte = nil
|
||||
x = 123
|
||||
|
||||
// The problem here is not the use of unsafe:
|
||||
// it is that indexing into p[] with a large
|
||||
|
|
@ -23,5 +23,5 @@ func main() {
|
|||
// Pointer offsets and array indices, if they are
|
||||
// very large, need to dereference the base pointer
|
||||
// to trigger a trap.
|
||||
println(p[uintptr(unsafe.Pointer(&x))]); // should crash
|
||||
println(p[uintptr(unsafe.Pointer(&x))]) // should crash
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue