Skip to content

Commit f6e7b93

Browse files
authored
fix: Correct DurationShorthand method docs (#6)
1 parent b393b36 commit f6e7b93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/openslo/v1/duration_shorthand.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (d *DurationShorthand) GetUnit() DurationShorthandUnit {
3939
return d.unit
4040
}
4141

42-
// GetUnit returns the underlying duration value.
42+
// GetValue returns the underlying duration value.
4343
// Example:
4444
//
4545
// duration, _ := ParseDurationShorthand("12w")

pkg/openslo/v2alpha/duration_shorthand.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (d *DurationShorthand) GetUnit() DurationShorthandUnit {
3939
return d.unit
4040
}
4141

42-
// GetUnit returns the underlying duration value.
42+
// GetValue returns the underlying duration value.
4343
// Example:
4444
//
4545
// duration, _ := ParseDurationShorthand("12w")

0 commit comments

Comments
 (0)