From 4887f2a04e391961c5e0ab6143e0cb24a3857cfe Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 24 Jun 2019 14:52:45 +0100 Subject: [PATCH] fix readme listclear from quest 11 --- subjects/listclear.en.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/subjects/listclear.en.md b/subjects/listclear.en.md index 0da3b3c98..4606a86e6 100644 --- a/subjects/listclear.en.md +++ b/subjects/listclear.en.md @@ -9,18 +9,7 @@ Write a function `ListClear` that delets all `nodes` from a linked list, deletin ### Expected function and structure ```go -type Node struct { - Data interface{} - Next *Node -} - -type List struct { - Head *Node - Tail *Node -} - func ListClear(l *List) { - } ``` @@ -33,11 +22,12 @@ package main import ( "fmt" + piscine ".." ) type List = piscine.List -type Node = piscine.Node +type Node = piscine.NodeL func PrintList(l *List) { link := l.Head @@ -65,6 +55,7 @@ func main() { ``` + And its output : ```console