]> Cypherpunks repositories - gostls13.git/commitdiff
time: fix LoadLocation documentation formatting
authorAbhinav Gupta <abg@uber.com>
Fri, 12 Aug 2022 16:20:40 +0000 (09:20 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 16:12:54 +0000 (16:12 +0000)
The documentation for LoadLocation contains an enumerated list,
but does not render as such because it's missing leading spaces.

Output verified with the go doc command and godoc server.

Change-Id: I88b61d34048b7d01ee5cd77c32849af266e2f4c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/423297
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>

src/time/zoneinfo.go

index b3313583d89450f9c95e9550175b0030c0cc5928..3c4aac375b5d00b0f44ee0ab613409aa86a7b5b7 100644 (file)
@@ -634,10 +634,10 @@ var zoneinfoOnce sync.Once
 // LoadLocation looks for the IANA Time Zone database in the following
 // locations in order:
 //
-// - the directory or uncompressed zip file named by the ZONEINFO environment variable
-// - on a Unix system, the system standard installation location
-// - $GOROOT/lib/time/zoneinfo.zip
-// - the time/tzdata package, if it was imported
+//   - the directory or uncompressed zip file named by the ZONEINFO environment variable
+//   - on a Unix system, the system standard installation location
+//   - $GOROOT/lib/time/zoneinfo.zip
+//   - the time/tzdata package, if it was imported
 func LoadLocation(name string) (*Location, error) {
        if name == "" || name == "UTC" {
                return UTC, nil