diff --git a/options_example_test.go b/options_example_test.go index ef68611..cba7113 100644 --- a/options_example_test.go +++ b/options_example_test.go @@ -28,7 +28,7 @@ func ExampleWithEnvPrefix() { return } - fmt.Printf(cfg.Foo) + fmt.Print(cfg.Foo) // Output: Foo from the variable with prefix } @@ -54,7 +54,7 @@ func ExampleFromEnv() { return } - fmt.Printf(cfg.Foo) + fmt.Print(cfg.Foo) // Output: Foo from different variable } @@ -166,7 +166,7 @@ func ExampleNoEnv() { return } - fmt.Printf(cfg.Foo) + fmt.Print(cfg.Foo) // Output: Default Foo value }