Skip to content

Commit

Permalink
docs(compute/metadata): update OnGCE description (#10408)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bgdnvk authored Jun 27, 2024
1 parent 64bdcb1 commit 6a46dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var (
onGCE bool
)

// OnGCE reports whether this process is running on Google Compute Engine.
// OnGCE reports whether this process is running on Google Compute Platforms.
func OnGCE() bool {
onGCEOnce.Do(initOnGCE)
return onGCE
Expand Down

0 comments on commit 6a46dca

Please sign in to comment.