]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/preprofile, runtime/coverage: add package comment
authorDmitri Shuralyov <dmitshur@golang.org>
Sat, 14 Sep 2024 11:48:31 +0000 (07:48 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 16 Sep 2024 17:07:00 +0000 (17:07 +0000)
As https://go.dev/doc/comment#package says, every package
should have a package comment. Command cmd/preprofile had
one, it was just not being recognized due to a blank line.

For #51430.
For #58102.

Change-Id: I73e31158e0f244f6453728ab68c5c8da4cfb38b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/613375
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/preprofile/main.go
src/runtime/coverage/coverage.go

index 60aa1f7cc6cdd66ea11816bc4439e5018c220c84..68e8dc716eb8f7fe04e1004352b33ab81ed32708 100644 (file)
@@ -9,9 +9,6 @@
 // Usage:
 //
 //     go tool preprofile [-v] [-o output] -i input
-//
-//
-
 package main
 
 import (
index 6b99a0bce6e63831c6141b2f2fe7dd9500cd9ece..c9f725e3efcfbba7c582df8441b357ad57eda08e 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Package coverage contains APIs for writing coverage profile data at runtime
+// from long-running and/or server programs that do not terminate via [os.Exit].
 package coverage
 
 import (