Skip to content

Commit 35a8a7c

Browse files
author
Dmitry Savintsev
committed
fix message - use singular noun for 1 second
1 parent b66a01e commit 35a8a7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import (
77

88
func Run() {
99
for i := 0; true; i++ {
10-
fmt.Println("running for", i, "seconds and still didn't crash")
10+
timestr := "seconds"
11+
if i == 1 {
12+
timestr = "second"
13+
}
14+
fmt.Println("running for", i, timestr, "and still didn't crash")
1115
time.Sleep(1 * time.Second)
1216
}
1317
}

0 commit comments

Comments
 (0)