Fix function comments based on best practices from Effective Go

Signed-off-by: CodeLingo Bot <bot@codelingo.io>
pull/18/head
CodeLingo Bot 5 years ago
parent cc26ad7dce
commit fd089e9887

@ -37,7 +37,7 @@ func (stack *Stack) Pop() interface{} {
return nil return nil
} }
// Returns top of a stack without deletion // Peek returns top of a stack without deletion
func (stack *Stack) Peek() interface{} { func (stack *Stack) Peek() interface{} {
if stack.depth > 0 { if stack.depth > 0 {
return stack.sp.item return stack.sp.item

Loading…
Cancel
Save