From b2be697f9b3b30a0d7cef5209e5fc916b0664a5d Mon Sep 17 00:00:00 2001 From: Augusto Date: Thu, 27 Jun 2019 10:49:27 +0100 Subject: [PATCH] add instruction to clarify the behavior of the function --- subjects/listfind.en.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subjects/listfind.en.md b/subjects/listfind.en.md index c84208e7..24f59ce8 100644 --- a/subjects/listfind.en.md +++ b/subjects/listfind.en.md @@ -48,7 +48,10 @@ func main() { piscine.ListPushBack(link, "hello2") piscine.ListPushBack(link, "hello3") - fmt.Println(piscine.ListFind(link, interface{}("hello2"), piscine.CompStr)) + found := piscine.ListFind(link, interface{}("hello2"), piscine.CompStr) + + fmt.Println(found) + fmt.Println(*found) } ``` @@ -58,6 +61,7 @@ And its output : student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ ./test 0xc42000a0a0 +hello2 student@ubuntu:~/piscine/test$ ``` ### Note