summaryrefslogtreecommitdiffhomepage
path: root/types/ptr/ptr.go
diff options
context:
space:
mode:
Diffstat (limited to 'types/ptr/ptr.go')
-rw-r--r--types/ptr/ptr.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/types/ptr/ptr.go b/types/ptr/ptr.go
index beb17bee8..beb955bf0 100644
--- a/types/ptr/ptr.go
+++ b/types/ptr/ptr.go
@@ -1,10 +1,10 @@
-// Copyright (c) Tailscale Inc & AUTHORS
-// SPDX-License-Identifier: BSD-3-Clause
-
-// Package ptr contains the ptr.To function.
-package ptr
-
-// To returns a pointer to a shallow copy of v.
-func To[T any](v T) *T {
- return &v
-}
+// Copyright (c) Tailscale Inc & AUTHORS
+// SPDX-License-Identifier: BSD-3-Clause
+
+// Package ptr contains the ptr.To function.
+package ptr
+
+// To returns a pointer to a shallow copy of v.
+func To[T any](v T) *T {
+ return &v
+}