Browse Source

fix output given to the student

content-update
lee 5 years ago
parent
commit
3d0970ca7f
  1. 15
      subjects/listforeachif.en.md
  2. 15
      subjects/listforeachif.fr.md

15
subjects/listforeachif.en.md

@ -86,7 +86,7 @@ func PrintList(l *piscine.List) {
fmt.Print(it.Data, "->")
it = it.Next
}
fmt.Println()
fmt.Print("nil","\n")
}
func main() {
@ -120,12 +120,15 @@ And its output :
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
1 -> hello -> 3 -> there -> 23 -> ! -> 54 -> <nil>
1->hello->3->there->23->!->54->nil
--------function applied--------
hello
there
!
1
3
23
54
--------function applied--------
1 -> 1 -> 3 -> 1 -> 23 -> 1 -> 54 -> <nil>
1->2->3->2->23->2->54->nil
student@ubuntu:~/piscine/test$
```

15
subjects/listforeachif.fr.md

@ -86,7 +86,7 @@ func PrintList(l *piscine.List) {
fmt.Print(it.Data, "->")
it = it.Next
}
fmt.Println()
fmt.Print("nil","\n")
}
func main() {
@ -120,12 +120,15 @@ Et son résultat :
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
1 -> hello -> 3 -> there -> 23 -> ! -> 54 -> <nil>
1->hello->3->there->23->!->54->nil
--------function applied--------
hello
there
!
1
3
23
54
--------function applied--------
1 -> 1 -> 3 -> 1 -> 23 -> 1 -> 54 -> <nil>
1->2->3->2->23->2->54->nil
student@ubuntu:~/piscine/test$
```

Loading…
Cancel
Save