Skip to content

Commit b3c4847

Browse files
authored
Change fizzBuzz return type to []string
1 parent 6fdc494 commit b3c4847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solution/0400-0499/0412.Fizz Buzz/Solution.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
func fizzBuzz(n int) (ans []string) {
1+
func fizzBuzz(n int) []string {
22
ans := make([]string, 0, n)
33
for i := 1; i < n+1; i++ {
44
switch {
@@ -13,4 +13,4 @@ func fizzBuzz(n int) (ans []string) {
1313
}
1414
}
1515
return ans
16-
}
16+
}

0 commit comments

Comments
 (0)