From 284804d9293c4431d436c24367d6cb019143a2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20T=C3=BCrkal?= Date: Thu, 6 Dec 2018 15:19:03 +0300 Subject: [PATCH] [fix] format fix for stack-1-introduction --- stack-1-introduction/stack-1-introduction.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stack-1-introduction/stack-1-introduction.go b/stack-1-introduction/stack-1-introduction.go index af8ef5a..9ca058a 100644 --- a/stack-1-introduction/stack-1-introduction.go +++ b/stack-1-introduction/stack-1-introduction.go @@ -49,7 +49,6 @@ func Push(stack *Stack, item int) { } stack.top++ stack.array[stack.top] = item - fmt.Println("Pushed to stack : %d", item) } func Pop(stack *Stack) int { @@ -66,9 +65,12 @@ func main() { stack := New(100) Push(stack, 10) + fmt.Println("Pushed to stack : 10") Push(stack, 20) + fmt.Println("Pushed to stack : 20") Push(stack, 30) + fmt.Println("Pushed to stack : 30") - fmt.Println("Popped from stack : %d", Pop(stack)) + fmt.Printf("Popped from stack : %d", Pop(stack)) }