From 52a3629583e25825adf1e952d4a362aacfbd1a4f Mon Sep 17 00:00:00 2001 From: Rodin Date: Mon, 18 May 2026 15:07:04 +0000 Subject: [PATCH] fix: correct drifted line citations in time/time.go and net/http/server.go - time/time.go:928-933 -> 925-933 ("To count the number of units" block starts at 925) - time/time.go:936-943 -> 934-942 (const Duration block starts at 934) - net/http/server.go:3173-3174 -> 3171-3174 (Close() func starts at 3171) --- patterns/documentation.md | 2 +- patterns/style.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patterns/documentation.md b/patterns/documentation.md index ecdad79..72a06f8 100644 --- a/patterns/documentation.md +++ b/patterns/documentation.md @@ -302,7 +302,7 @@ for inline (use Example functions instead); examples that reference unexported s // log.Fatal(err) // } -// time/time.go:928-933 +// time/time.go:925-933 // To count the number of units in a [Duration], divide: // // second := time.Second diff --git a/patterns/style.md b/patterns/style.md index 0e76868..7884440 100644 --- a/patterns/style.md +++ b/patterns/style.md @@ -256,7 +256,7 @@ run earlier. **Code examples from source:** ```go -// net/http/server.go:3173-3174 +// net/http/server.go:3171-3174 func (s *Server) Close() error { s.inShutdown.Store(true) s.mu.Lock() @@ -448,7 +448,7 @@ const ( // ... ) -// time/time.go:936-943 +// time/time.go:934-942 const ( Nanosecond Duration = 1 Microsecond = 1000 * Nanosecond