From 75e9d24213992ea2077283383cb8705fefc2973a Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Wed, 25 Jan 2012 23:42:36 -0200 Subject: [PATCH] doc/go1: fix urls R=golang-dev, r CC=golang-dev https://golang.org/cl/5577051 --- doc/go1.html | 20 ++++++++++---------- doc/go1.tmpl | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/doc/go1.html b/doc/go1.html index b3a000d993d..768c1ca6fa6 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -936,13 +936,13 @@ for that purpose.

The set of parse functions provided by the go/parser package has been reduced to the primary parse function -ParseFile, and a couple of -convenience functions ParseDir -and ParseExpr. +ParseFile, and a couple of +convenience functions ParseDir +and ParseExpr.

-The type names of the go/doc package have been +The type names of the go/doc package have been streamlined by removing the Doc suffix: PackageDoc is now Package, ValueDoc is Value, etc. Also, all types now consistently have a Name field (or Names, @@ -958,19 +958,19 @@ documentation for a package is created with:

where the new mode parameter specifies the operation mode: -if set to AllDecls, all declarations +if set to AllDecls, all declarations (not just exported ones) are considered. The function NewFileDoc was removed, and the function CommentText has become the method -Text of -ast.CommentGroup. +Text of +ast.CommentGroup.

-In package go/token, the -token.FileSet method Files +In package go/token, the +token.FileSet method Files (which originally returned a channel of *token.Files) has been replaced -with the iterator Iterate that +with the iterator Iterate that accepts a function argument instead.

diff --git a/doc/go1.tmpl b/doc/go1.tmpl index 4e59354bcc6..e0a443dc2c6 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -839,13 +839,13 @@ for that purpose.

The set of parse functions provided by the go/parser package has been reduced to the primary parse function -ParseFile, and a couple of -convenience functions ParseDir -and ParseExpr. +ParseFile, and a couple of +convenience functions ParseDir +and ParseExpr.

-The type names of the go/doc package have been +The type names of the go/doc package have been streamlined by removing the Doc suffix: PackageDoc is now Package, ValueDoc is Value, etc. Also, all types now consistently have a Name field (or Names, @@ -861,19 +861,19 @@ documentation for a package is created with:

where the new mode parameter specifies the operation mode: -if set to AllDecls, all declarations +if set to AllDecls, all declarations (not just exported ones) are considered. The function NewFileDoc was removed, and the function CommentText has become the method -Text of -ast.CommentGroup. +Text of +ast.CommentGroup.

-In package go/token, the -token.FileSet method Files +In package go/token, the +token.FileSet method Files (which originally returned a channel of *token.Files) has been replaced -with the iterator Iterate that +with the iterator Iterate that accepts a function argument instead.