Skip to content

Commit

Permalink
docs: clarify example a bit
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Feb 21, 2025
1 parent 2be9960 commit 8917d78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,5 +477,6 @@ func Example_setDefaultsForZeroValuesOnly() {
}

fmt.Printf("%+v", cfg)
// Without SetDefaultsForZeroValuesOnly, the username would have been 'admin'.
// Output: {Username:root Password:qwerty}
}

0 comments on commit 8917d78

Please sign in to comment.