Skip to content

Commit 6a46dca

Browse files
authored
docs(compute/metadata): update OnGCE description (#10408)
We are using the `metadata.OnGCE()` function to check if it runs on our Cloud Runs, this can be a helpful comment for others using the package.
1 parent 64bdcb1 commit 6a46dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compute/metadata/metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var (
110110
onGCE bool
111111
)
112112

113-
// OnGCE reports whether this process is running on Google Compute Engine.
113+
// OnGCE reports whether this process is running on Google Compute Platforms.
114114
func OnGCE() bool {
115115
onGCEOnce.Do(initOnGCE)
116116
return onGCE

0 commit comments

Comments
 (0)