diff --git a/doc/go1.1.html b/doc/go1.1.html index 287f007fc4..32639ecbdb 100644 --- a/doc/go1.1.html +++ b/doc/go1.1.html @@ -14,6 +14,23 @@ TODO TODO +
+In Go 1, integer division by a constant zero produced a runtime panic: +
+ +
+func f(x int) int {
+ return x/0
+}
+
+
++In Go 1.1, an integer division by constant zero is not a legal program, so it is a compile-time error. +
+ +