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)
This commit is contained in:
Rodin
2026-05-18 15:07:04 +00:00
parent f070fef8ee
commit 52a3629583
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -302,7 +302,7 @@ for inline (use Example functions instead); examples that reference unexported s
// log.Fatal(err) // log.Fatal(err)
// } // }
// time/time.go:928-933 // time/time.go:925-933
// To count the number of units in a [Duration], divide: // To count the number of units in a [Duration], divide:
// //
// second := time.Second // second := time.Second
+2 -2
View File
@@ -256,7 +256,7 @@ run earlier.
**Code examples from source:** **Code examples from source:**
```go ```go
// net/http/server.go:3173-3174 // net/http/server.go:3171-3174
func (s *Server) Close() error { func (s *Server) Close() error {
s.inShutdown.Store(true) s.inShutdown.Store(true)
s.mu.Lock() s.mu.Lock()
@@ -448,7 +448,7 @@ const (
// ... // ...
) )
// time/time.go:936-943 // time/time.go:934-942
const ( const (
Nanosecond Duration = 1 Nanosecond Duration = 1
Microsecond = 1000 * Nanosecond Microsecond = 1000 * Nanosecond