From 6712140fd256e99ef1b8113892eb29f0d6e92f93 Mon Sep 17 00:00:00 2001 From: kindknow Date: Thu, 11 Apr 2024 18:05:30 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: kindknow --- internal/chezmoi/ageencryption.go | 2 +- internal/chezmoi/sourcestate.go | 2 +- internal/cmd/keepassxctemplatefuncs.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/chezmoi/ageencryption.go b/internal/chezmoi/ageencryption.go index fdc3895af8f..74a16539471 100644 --- a/internal/chezmoi/ageencryption.go +++ b/internal/chezmoi/ageencryption.go @@ -260,7 +260,7 @@ func parseIdentityFile(identityFile AbsPath) (identities []age.Identity, err err return } -// parseRecipientFile parses the recipients from recipientsFile using the +// parseRecipientsFile parses the recipients from recipientsFile using the // builtin age. func parseRecipientsFile(recipientsFile AbsPath) (recipients []age.Recipient, err error) { var file *os.File diff --git a/internal/chezmoi/sourcestate.go b/internal/chezmoi/sourcestate.go index 0c7db553c2c..26e67582fd2 100644 --- a/internal/chezmoi/sourcestate.go +++ b/internal/chezmoi/sourcestate.go @@ -1602,7 +1602,7 @@ func (s *SourceState) getExternalDataRaw( return data, nil } -// getExternalDataRaw reads the external data for externalRelPath from +// getExternalData reads the external data for externalRelPath from // external.URL. func (s *SourceState) getExternalData( ctx context.Context, diff --git a/internal/cmd/keepassxctemplatefuncs.go b/internal/cmd/keepassxctemplatefuncs.go index a9f8799f5f9..408e063c55a 100644 --- a/internal/cmd/keepassxctemplatefuncs.go +++ b/internal/cmd/keepassxctemplatefuncs.go @@ -141,7 +141,7 @@ func (c *Config) keepassxcAttributeTemplateFunc(entry, attribute string) string return outputStr } -// keepassxcOutputCachePassword returns the output of command and args. +// keepassxcOutput returns the output of command and args. func (c *Config) keepassxcOutput(command string, args ...string) ([]byte, error) { if c.Keepassxc.Database.Empty() { panic(errors.New("keepassxc.database not set"))