Skip to content

Commit ed80e34

Browse files
committed
docs: be truthful about earlier writes and later marshals
1 parent b85d49a commit ed80e34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/slackdotenv/slackdotenv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ func Set(fs afero.Fs, name string, value string) error {
106106
oldMarshaledValue := strings.TrimPrefix(oldEntry, name+"=")
107107

108108
// Try each possible form of the old entry, longest (most specific) first.
109-
// For multiline values, also try the double-quoted raw form since the file
110-
// stores actual newlines while Marshal escapes them.
109+
// The file can store multiline values with actual newlines, so also try
110+
// the double-quoted raw form.
111111
entries := []string{
112112
"export " + name + "=" + oldMarshaledValue,
113113
"export " + name + "=" + `"` + oldValue + `"`,

0 commit comments

Comments
 (0)