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:
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user