From: Rob Pike Date: Wed, 19 Aug 2015 03:44:33 +0000 (+1000) Subject: doc: fix typos in go1.5.html X-Git-Tag: go1.5~1^2~4 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=54eb9efb708bee98979782c5c220ae4b184190c9;p=gostls13.git doc: fix typos in go1.5.html Thanks to Nathan Youngman for spotting them. Change-Id: I1856527af66a5d1965265ec3dcd639d3f6d74bcc Reviewed-on: https://go-review.googlesource.com/13711 Reviewed-by: Russ Cox --- diff --git a/doc/go1.5.html b/doc/go1.5.html index 8f3035fe9a..4e5832db3a 100644 --- a/doc/go1.5.html +++ b/doc/go1.5.html @@ -83,7 +83,8 @@ time the release dates more conveniently. Due to an oversight, the rule that allowed the element type to be elided from slice literals was not applied to map keys. This has been corrected in Go 1.5. -An example will make this clear: as of Go 1.5, this map literal, +An example will make this clear. +As of Go 1.5, this map literal,

@@ -182,7 +183,7 @@ Details of the new collector were presented in a
 

In Go 1.5, the order in which goroutines are scheduled has been changed. The properties of the scheduler were never defined by the language, -but programs that depended on the scheduling order may be broken +but programs that depend on the scheduling order may be broken by this change. We have seen a few (erroneous) programs affected by this change. If you have programs that implicitly depend on the scheduling @@ -194,7 +195,7 @@ Another potentially breaking change is that the runtime now sets the default number of threads to run simultaneously, defined by GOMAXPROCS, to the number of cores available on the CPU. -In prior releases it defaulted to 1. +In prior releases the default was 1. Programs that do not expect to run with multiple cores may break inadvertently. They can be updated by removing the restriction or by setting @@ -292,7 +293,7 @@ The old names are gone; the new tools are available through the go mechanism as go tool compile, go tool asm, and go tool link. -Also, the file suffixes .6, .8 etc. for the +Also, the file suffixes .6, .8, etc. for the intermediate object files are also gone; now they are just plain .o files.

@@ -512,7 +513,7 @@ A new cmd wildcard covers the commands.
  • A new -asmflags build option sets flags to pass to the assembler. -However, +However, the -ccflags build option has been dropped; it was specific to the old, now deleted C compiler .
  • @@ -538,7 +539,7 @@ This acts as a custom replacement for go tool.
  • The test subcommand now has a -count flag to specify how many times to run each test and benchmark. -testing package +The testing package does the work here, through by the -test.count flag.
  • @@ -1024,14 +1025,14 @@ To update, run In the image package, the Rectangle type now implements the Image interface, -mask image when drawing. +so a Rectangle can serve as a mask when drawing.
  • Also in the image package, to assist in the handling of some JPEG images, there is now support for 4:1:1 and 4:1:0 YCbCr subsampling and basic -CMYK support, represented by the new image.CMYK struct. +CMYK support, represented by the new image.CMYK struct.
  • @@ -1054,7 +1055,7 @@ Because of the echo property of the old code, the operation In Go 1.5, that operation may yield a different value. The correct code is, and always was, to select the high 8 bits: uint8(r>>8). -Incidentally, image/draw package +Incidentally, the image/draw package provides better support for such conversions; see this blog post for more information. @@ -1100,7 +1101,7 @@ but now correctly according to the IEEE754 definition of NaNs.
  • The math/big package adds a new Jacobi -function for integers and a new method +function for integers and a new ModSqrt method for the Int type.
  • @@ -1192,7 +1193,7 @@ variable.
  • The net/mail package -adds a AddressParser +adds an AddressParser type that can parse mail addresses.
  • @@ -1279,7 +1280,7 @@ precision.
  • Also in the text/template and html/template packages, -a new Option type +a new Option method allows customization of the behavior of the template during execution. The sole implemented option allows control over how a missing key is handled when indexing a map.