Skip to content

Commit 991a452

Browse files
author
en-ken
committed
fix: fixed displayed message.
1 parent d888b9b commit 991a452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kadai3/en-ken/kadai3/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Typing interface {
2727
IsCorrect(input string) bool
2828
}
2929

30-
func execute(chInput <-chan string, chFinish <-chan time.Time, stdout *os.File, t Typing) {
30+
func execute(chInput <-chan string, chFinish <-chan time.Time, stdout io.Writer, t Typing) {
3131

3232
score := 0
3333
for i := 1; ; i++ {
@@ -39,7 +39,7 @@ func execute(chInput <-chan string, chFinish <-chan time.Time, stdout *os.File,
3939
score++
4040
fmt.Fprintln(stdout, "Correct!")
4141
} else {
42-
fmt.Fprintln(stdout, "Correct!")
42+
fmt.Fprintln(stdout, "Miss!")
4343
}
4444
case <-chFinish:
4545
fmt.Fprintln(stdout, "\nTime's up!!")

0 commit comments

Comments
 (0)