Browse Source

review comments

although, the change for out = "Pling" is kind of trivial, I don't really want to argue about it.
he's only trying to help me learn (shrug).
master
Blaine Motsinger 1 year ago
parent
commit
1a46d7c97f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      go/raindrops/raindrops.go

+ 2
- 2
go/raindrops/raindrops.go View File

@@ -1,4 +1,4 @@
// Package for the raindrops exercise for the exercism.io go track
// Package raindrops - exercise for the exercism.io go track
package raindrops

import "strconv"
@@ -13,7 +13,7 @@ func Convert(input int) string {
for i := 1; i <= input; i++ {
if input%i == 0 {
if i == 3 {
out += "Pling"
out = "Pling"
} else if i == 5 {
out += "Plang"
} else if i == 7 {

Loading…
Cancel
Save