From cf80ccd8f666a839466af874aefa0ee02c58efdc Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 9 Feb 2012 07:09:52 +1100 Subject: [PATCH] doc/go1: mention that the compiler catches TotalSize and NewReaderSize Today is Size day and the compiler will reject old code using these functions. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5644053 --- doc/go1.html | 5 ++--- doc/go1.tmpl | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/go1.html b/doc/go1.html index 7613c38805..28f17f1b5d 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -875,8 +875,7 @@ If the argument size is too small or invalid, it is adjusted.

Updating: -These functions are rarely used, and code must be updated by hand. -All that is required is to drop the second return value. +What little code is affected will be caught by the compiler and must be updated by hand.

The crypto/elliptic package

@@ -937,7 +936,7 @@ In Go 1, the binary.TotalSize function is no longer exported.

Updating: -Code that depends on the function will need to be updated. +What little code is affected will be caught by the compiler and must be updated by hand.

The encoding/xml package

diff --git a/doc/go1.tmpl b/doc/go1.tmpl index f6e69e6ca2..6375ebcc00 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -779,8 +779,7 @@ If the argument size is too small or invalid, it is adjusted.

Updating: -These functions are rarely used, and code must be updated by hand. -All that is required is to drop the second return value. +What little code is affected will be caught by the compiler and must be updated by hand.

The crypto/elliptic package

@@ -841,7 +840,7 @@ In Go 1, the binary.TotalSize function is no longer exported.

Updating: -Code that depends on the function will need to be updated. +What little code is affected will be caught by the compiler and must be updated by hand.

The encoding/xml package

-- 2.50.0