Skip to content

Commit 0f2231d

Browse files
committed
command aliases
1 parent b3fc8f8 commit 0f2231d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,16 @@ func main() {
554554
} else {
555555
switch lineTrimmed {
556556
case "sw":
557+
fallthrough
558+
case "swap":
557559
err := swap(&stack)
558560
if err != nil {
559561
fmt.Println(err)
560562
continue
561563
}
562564
case "p":
565+
fallthrough
566+
case "pop":
563567
_, err := pop1(&stack)
564568
if err != nil {
565569
fmt.Println(err)

0 commit comments

Comments
 (0)