Skip to content

Commit 5b1f875

Browse files
committed
fix wrong spelling
1 parent 29535e8 commit 5b1f875

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cmdmux
22

3-
Package cmdmux implements a command parser and router for terminal programme.
3+
Package cmdmux implements a command parser and router for terminal program.
44

55

66
[![Build Status](https://travis-ci.org/choueric/cmdmux.svg?branch=master)](https://travis-ci.org/choueric/cmdmux)
@@ -9,7 +9,7 @@ Package cmdmux implements a command parser and router for terminal programme.
99

1010
# Overview
1111

12-
In general, there are two styles a terminal programme to interact with users.
12+
In general, there are two styles a terminal program to interact with users.
1313

1414
1. Use -o, -p to specify parameters. Most programmes are in this way.
1515
2. Use sub-commands, like git which uses only one level sub-command.
@@ -19,7 +19,7 @@ second this package.
1919

2020
The package can:
2121

22-
1. Build a terminal programme with various commands easily.
22+
1. Build a terminal program with various commands easily.
2323
2. Generate a shell completion file (Now only for bash) !
2424
3. Output commands tree.
2525

@@ -111,10 +111,10 @@ after its command name.
111111
## Generate Shell Completion File
112112

113113
After building various commands with `HandleFunc()`, it's time to get a shell
114-
(bash actually) completion file which helps users of your programme input
114+
(bash actually) completion file which helps users of your program input
115115
commands easily on terminal.
116116

117-
Below is a example to get such file for `test` programme:
117+
Below is a example to get such file for `test` program:
118118

119119
```go
120120
// some HandleFunc codes ...

cmdmux.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package cmdmux is used to parse and route commands of terminal programe.
1+
// Package cmdmux is used to parse and route commands of terminal program.
22
package cmdmux
33

44
import (
@@ -13,7 +13,7 @@ import (
1313
// if error is nil, then return value int is useful.
1414
type CmdHandler func([]string, interface{}) (int, error)
1515

16-
// CmdMux represents programme's commands.
16+
// CmdMux represents program's commands.
1717
type CmdMux struct {
1818
root *cmdNode
1919
}

0 commit comments

Comments
 (0)