From 4f61fc96b2788be7cbfc6f7a72acef3d3feeeb6c Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sat, 4 Sep 2010 10:36:13 +1000 Subject: 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 --- test/nilptr/arrayindex.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/nilptr/arrayindex.go') diff --git a/test/nilptr/arrayindex.go b/test/nilptr/arrayindex.go index 1767acc275..c564bce340 100644 --- a/test/nilptr/arrayindex.go +++ b/test/nilptr/arrayindex.go @@ -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 } -- cgit v1.3-5-g9baa