diff options
| author | Rob Pike <r@golang.org> | 2010-09-04 10:36:13 +1000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2010-09-04 10:36:13 +1000 |
| commit | 4f61fc96b2788be7cbfc6f7a72acef3d3feeeb6c (patch) | |
| tree | 094ba2238e5596358b6ae4db5789c7d1fee4ecb7 /test/nilptr/arrayindex.go | |
| parent | cd8f4cd2068964bfa12e10cd094d41ddd725af4f (diff) | |
| download | go-4f61fc96b2788be7cbfc6f7a72acef3d3feeeb6c.tar.xz | |
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
Diffstat (limited to 'test/nilptr/arrayindex.go')
| -rw-r--r-- | test/nilptr/arrayindex.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |
