Skip to content

Commit

Permalink
refactor: 🚨 fix f variants of the print priting only single value. (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoido authored Nov 15, 2024
1 parent 495b073 commit fe9e1d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions options_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ExampleWithEnvPrefix() {
return
}

fmt.Printf(cfg.Foo)
fmt.Print(cfg.Foo)

// Output: Foo from the variable with prefix
}
Expand All @@ -54,7 +54,7 @@ func ExampleFromEnv() {
return
}

fmt.Printf(cfg.Foo)
fmt.Print(cfg.Foo)

// Output: Foo from different variable
}
Expand Down Expand Up @@ -166,7 +166,7 @@ func ExampleNoEnv() {
return
}

fmt.Printf(cfg.Foo)
fmt.Print(cfg.Foo)

// Output: Default Foo value
}

0 comments on commit fe9e1d4

Please sign in to comment.