Skip to content

Commit

Permalink
Better comments in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
debek committed Jan 8, 2024
1 parent 1f49e60 commit f322da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type intervalFlag struct {
value int
}

// Set jest metodą wywoływaną przez pakiet flag, gdy flaga zostanie ustawiona.
// Set is a method called by the flag package when the flag is set.
func (f *intervalFlag) Set(s string) error {
f.set = true
var err error
Expand All @@ -22,7 +22,7 @@ func (f *intervalFlag) Set(s string) error {
return nil
}

// String zwraca reprezentację string flagi.
// String returns the string representation of the flag
func (f *intervalFlag) String() string {
if !f.set {
return "not set"
Expand Down

0 comments on commit f322da6

Please sign in to comment.