mirror of
https://github.com/golang/go
synced 2024-11-18 01:04:48 -07:00
runtime/race: improve public documentation
Move the documentation from race.go to doc.go, because race.go uses +build race, so it's not normally parsed by go doc. Rephrase the documentation for end users, provide link to race detector manual. Fixes #5444. R=golang-dev, minux.ma, adg, r CC=golang-dev https://golang.org/cl/9144050
This commit is contained in:
parent
0ae5036b26
commit
5a7e14c143
9
src/pkg/runtime/race/doc.go
Normal file
9
src/pkg/runtime/race/doc.go
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2013 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Package race implements data race detection logic.
|
||||||
|
// No public interface is provided.
|
||||||
|
// For details about the race detector see
|
||||||
|
// http://golang.org/doc/articles/race_detector.html
|
||||||
|
package race
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
// +build race,linux,amd64 race,darwin,amd64 race,windows,amd64
|
// +build race,linux,amd64 race,darwin,amd64 race,windows,amd64
|
||||||
|
|
||||||
// Package race provides low-level facilities for data race detection.
|
|
||||||
package race
|
package race
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user