Skip to content

Commit

Permalink
refact comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhunters committed Feb 21, 2023
1 parent 54b9a2a commit 28d9108
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions stringutil/string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ func ExampleExpand() {
// Expand simple expression
v, err := stringutil.Expand("please send mail to ${name} at ${address}!", "${", "}", func(placeholderKey string) string {
mp := map[string]string{"name": "matt", "address": "shanghai pudong"}

// just return key directly
return mp[placeholderKey]
})
if err == nil {
Expand All @@ -316,7 +314,6 @@ func ExampleExpand() {
// Expand recursive expression
v, err = stringutil.Expand("please send mail to #{to#{name}} at #{address}", "#{", "}", func(placeholderKey string) string {
mp := map[string]string{"name": "matt", "tomatt": "matt's company", "address": "shanghai pudong"}
// just return key directly
return mp[placeholderKey]
})
if err == nil {
Expand Down

0 comments on commit 28d9108

Please sign in to comment.