Fixed examples not being run during test

This commit is contained in:
Philipp Wolfer 2024-01-14 11:54:54 +01:00
parent 925c21893b
commit d9d83a4282
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B

View file

@ -21,13 +21,13 @@ import (
"go.uploadedlobster.com/scotty/internal/util" "go.uploadedlobster.com/scotty/internal/util"
) )
func MaxExample() { func ExampleMax() {
v := util.Max(2, 5) v := util.Max(2, 5)
fmt.Print(v) fmt.Print(v)
// Output: 5 // Output: 5
} }
func MinExample() { func ExampleMin() {
v := util.Min(2, 5) v := util.Min(2, 5)
fmt.Print(v) fmt.Print(v)
// Output: 2 // Output: 2