From fd089e98872c8a21c54f487dbe876ef1e45f9e84 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Mon, 18 Feb 2019 22:36:21 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- stack/stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/stack.go b/stack/stack.go index ae2e4af..9771e86 100644 --- a/stack/stack.go +++ b/stack/stack.go @@ -37,7 +37,7 @@ func (stack *Stack) Pop() interface{} { return nil } -// Returns top of a stack without deletion +// Peek returns top of a stack without deletion func (stack *Stack) Peek() interface{} { if stack.depth > 0 { return stack.sp.item