From fd09a1db1a2f045946263866359cc54b8e510d36 Mon Sep 17 00:00:00 2001 From: Jacob Brewer Date: Sat, 12 Oct 2024 17:13:10 +0100 Subject: [PATCH] chore(loader): Updating comment on the loader methods (#33) Updating comment on the loader methods --- loader.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader.go b/loader.go index abcece4..36fbcfd 100644 --- a/loader.go +++ b/loader.go @@ -10,7 +10,8 @@ var ( ErrInvalidType = errors.New("invalid type: must pointer to struct") ) -// LoadDiff inserts the fields provided in the new struct pointer into the old struct pointer and returns the result. +// LoadDiff inserts the fields provided in the new struct pointer into the old struct pointer and injects the new +// values into the old struct. // // Note that it only pushes non-zero value updates, meaning you cannot set any field to zero, the empty string, etc. //