Merge pull request #18 from CodeLingoBot/rewrite

Fix function comments based on best practices from Effective Go
pull/20/head
0xAX 5 years ago committed by GitHub
commit b0b9d126f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save