Browse Source

Merge pull request #202 from 01-edu/listsize-chg

fix sintax error
pull/221/head
LEEDASILVA 5 years ago committed by GitHub
parent
commit
b937ff8766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      subjects/listsize.en.md

10
subjects/listsize.en.md

@ -7,14 +7,14 @@ Write a function `ListSize` that returns the number of elements in the list.
### Expected function and structure
```go
type Node struct {
type NodeL struct {
Data interface{}
Next *Node
Next *NodeL
}
type List struct {
Head *Node
Tail *Node
Head *NodeL
Tail *NodeL
}
func ListSize(l *List) int {
@ -35,7 +35,7 @@ import (
)
func main() {
link := &List{}
link := &piscine.List{}
piscine.ListPushFront(link, "Hello")
piscine.ListPushFront(link, "2")

Loading…
Cancel
Save