From 4eae23d7a7cf7ce9895f638b22305909674df06b Mon Sep 17 00:00:00 2001 From: MSilva95 Date: Tue, 26 Nov 2019 13:50:45 +0000 Subject: [PATCH] changing overflow cases --- subjects/doop.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/doop.en.md b/subjects/doop.en.md index 3a1331854..79dc90c59 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -18,9 +18,9 @@ In case of an invalid operator the programs prints `0`. In case of an invalid number of arguments the program prints nothing. -In case of overflow the program prints `Overflow`. +In case the result gives overflow the program prints `Overflow`. -The program has to handle the modulo and division operations by 0 as shown on the output examples below. +The program has to handle the module and division operations by 0 as shown on the output examples below. `fmt.Print` is authorized. @@ -42,7 +42,7 @@ No Modulo by 0$ student@ubuntu:~/piscine-go/test$ ./doop 9223372036854775807 + 1 Overflow student@ubuntu:~/piscine-go/test$ ./doop -9223372036854775809 "*" 3 -Overflow +0 student@ubuntu:~/piscine-go/test$ ./doop 9223372036854775807 "*" 3 Overflow student@ubuntu:~/piscine-go/test$ ./doop 1 "*" 1