From 8ea409f829091208d2d0ba4d81ecbe83b0fee9bb Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 11 Apr 2022 13:12:03 -0400 Subject: 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 TryBot-Result: kokoro Auto-Submit: Russ Cox Reviewed-by: Jonathan Amsterdam --- internal/stdlib/stdlib.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'internal/stdlib/stdlib.go') 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{}) } -- cgit v1.3-6-g1900