Skip to content

Commit

Permalink
update Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghua1 committed Nov 12, 2024
1 parent 8cb486a commit 276471d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/azd/pkg/environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/azure/azure-dev/cli/azd/pkg/config"
)

// doubleQuoteSpecialChars defines the characters that need to be escaped.
// DoubleQuoteSpecialChars defines the characters that need to be escaped.
const doubleQuoteSpecialChars = "\\\n\r\""

// EnvNameEnvVarName is the name of the key used to store the envname property in the environment.
Expand Down Expand Up @@ -309,7 +309,7 @@ func Marshal(envMap map[string]string) (string, error) {
return strings.Join(lines, "\n"), nil
}

// doubleQuoteEscape escapes special characters in the string to ensure it is safely quoted
// DoubleQuoteEscape escapes special characters in the string to ensure it is safely quoted
// for a dotenv file. It escapes characters like newlines, carriage returns,
// and any other special characters defined in `doubleQuoteSpecialChars`
func doubleQuoteEscape(line string) string {
Expand Down

0 comments on commit 276471d

Please sign in to comment.