From aef3f523ce48fd8ad6338cf3ed15e3cce8ac4a68 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 22 Jun 2022 09:44:38 +0200 Subject: [PATCH] Improve updater.Resource.Export() documentation --- updater/resource.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/updater/resource.go b/updater/resource.go index 81e2896..eeda5db 100644 --- a/updater/resource.go +++ b/updater/resource.go @@ -118,6 +118,8 @@ func (rv *ResourceVersion) isBetaVersionNumber() bool { //nolint:unused } // Export makes a copy of the resource with only the exposed information. +// Attributes are copied and safe to access. +// Any ResourceVersion must not be modified. func (res *Resource) Export() *Resource { res.Lock() defer res.Unlock()