Browse Source

Merge pull request #235 from 01-edu/list-find-rd-imp

add instruction to clarify the behavior of the function
content-update
LEEDASILVA 5 years ago committed by GitHub
parent
commit
0211de1c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      subjects/listfind.en.md

6
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

Loading…
Cancel
Save