Modification for

This commit is contained in:
rick 2021-04-18 12:33:01 +02:00
parent b8e99d9d88
commit 16791f2ae5
Signed by: Rick
GPG key ID: 2B593F087240EE99

View file

@ -38,9 +38,8 @@ func p_partie(file *os.File) {
nbMaison := 1 nbMaison := 1
listeMaison := list.New() listeMaison := list.New()
listeMaison.PushFront(pred) listeMaison.PushFront(pred)
char, _, err := reader.ReadRune()
for err != io.EOF { for char, _, err := reader.ReadRune(); err != io.EOF; {
switch string(char) { switch string(char) {
case "^": case "^":
pred.y++ pred.y++