diff options
| author | Russ Cox <rsc@golang.org> | 2022-04-11 13:12:03 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-04-11 21:55:57 +0000 |
| commit | 8ea409f829091208d2d0ba4d81ecbe83b0fee9bb (patch) | |
| tree | 0c0d0f5d753b722533b3bba32e3e23d4aa3059cd /internal/stdlib | |
| parent | 7ca74fe938640d7c9e378dc8e5821b58313cdd68 (diff) | |
| download | go-x-pkgsite-8ea409f829091208d2d0ba4d81ecbe83b0fee9bb.tar.xz | |
all: gofmt
Gofmt to update doc comments to the new formatting.
For golang/go#51082.
Change-Id: Ia9e71e7ecac75822ff43d6c7e60f512442a5fa50
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/399617
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/stdlib')
| -rw-r--r-- | internal/stdlib/stdlib.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/internal/stdlib/stdlib.go b/internal/stdlib/stdlib.go index 654773ab..cf0d155f 100644 --- a/internal/stdlib/stdlib.go +++ b/internal/stdlib/stdlib.go @@ -63,12 +63,13 @@ var SupportedBranches = map[string]bool{ // tag doesn't correspond to a Go release or beta tag. In special cases, // when the tag specified is either `latest` or `master` it will return the tag. // Examples: -// "go1" => "v1.0.0" -// "go1.2" => "v1.2.0" -// "go1.13beta1" => "v1.13.0-beta.1" -// "go1.9rc2" => "v1.9.0-rc.2" -// "latest" => "latest" -// "master" => "master" +// +// "go1" => "v1.0.0" +// "go1.2" => "v1.2.0" +// "go1.13beta1" => "v1.13.0-beta.1" +// "go1.9rc2" => "v1.9.0-rc.2" +// "latest" => "latest" +// "master" => "master" func VersionForTag(tag string) string { // Special cases for go1. if tag == "go1" { @@ -212,7 +213,8 @@ func swapGoRepo(gr goRepo) goRepo { // WithTestData arranges for this package to use a testing version of the Go repo. // The returned function restores the previous state. Use with defer: -// defer WithTestData()() +// +// defer WithTestData()() func WithTestData() func() { return withGoRepo(&testGoRepo{}) } |
