Skip to content

Fix typo in GoDoc comment for NewConstant function#31

Merged
sethvargo merged 1 commit intosethvargo:mainfrom
domelzer:main
Oct 28, 2025
Merged

Fix typo in GoDoc comment for NewConstant function#31
sethvargo merged 1 commit intosethvargo:mainfrom
domelzer:main

Conversation

@domelzer
Copy link
Contributor

The NewConstant function will panic if the time duration is less than or equal to zero.

The GoDoc comment for this function needs to be updated to say that it will panic if the given base is "less than or equal to zero" instead of "less than zero".

@sethvargo sethvargo enabled auto-merge (squash) October 24, 2025 17:27
@sethvargo sethvargo disabled auto-merge October 28, 2025 20:39
@sethvargo sethvargo merged commit 05bfdd6 into sethvargo:main Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants