commit 75349a8
Hubert Hirtz
·
2021-09-11 17:29:20 +0000 UTC
parent 28e8bae
Fix typos
4 files changed,
+8,
-8
+1,
-1
1@@ -35,7 +35,7 @@ func main() {
2
3 cfg, err := senpai.LoadConfigFile(configPath)
4 if err != nil {
5- fmt.Fprintf(os.Stderr, "failed to load the required configuraiton file at %q: %s\n", configPath, err)
6+ fmt.Fprintf(os.Stderr, "failed to load the required configuration file at %q: %s\n", configPath, err)
7 os.Exit(1)
8 }
9
+1,
-1
1@@ -441,7 +441,7 @@ func (app *App) handleInput(buffer, content string) error {
2 return noCommand(app, buffer, rawArgs)
3 }
4 if cmdName == "" {
5- return fmt.Errorf("lone slash at the begining")
6+ return fmt.Errorf("lone slash at the beginning")
7 }
8
9 var chosenCMDName string
+2,
-2
1@@ -88,7 +88,7 @@ type Channel struct {
2 TopicTime time.Time // the last time the topic has been changed.
3 Secret bool // whether the channel is on the server channel list.
4
5- complete bool // whether this stucture is fully initialized.
6+ complete bool // whether this structure is fully initialized.
7 }
8
9 // SessionParams defines how to connect to an IRC server.
10@@ -174,7 +174,7 @@ func (s *Session) Close() {
11 close(s.out)
12 }
13
14-// HasCapability reports whether the given capability has been negociated
15+// HasCapability reports whether the given capability has been negotiated
16 // successfully.
17 func (s *Session) HasCapability(capability string) bool {
18 _, ok := s.enabledCaps[capability]
+4,
-4
1@@ -93,12 +93,12 @@ func (l *Line) NewLines(width int) []int {
2 x := 0
3 for i := 1; i < len(l.splitPoints); i++ {
4 // Iterate through the split points 2 by 2. Split points are placed at
5- // the begining of whitespace (see IsSplitRune) and at the begining of
6- // non-whitespace. Iterating on 2 points each time, sp1 and sp2, allow
7- // consideration of a "word" of (non-)whitespace.
8+ // the beginning of whitespace (see IsSplitRune) and at the beginning
9+ // of non-whitespace. Iterating on 2 points each time, sp1 and sp2,
10+ // allows consideration of a "word" of (non-)whitespace.
11 // Split points have the index I in the string and the width X of the
12 // screen. Finally, the Split field is set to true if the split point
13- // is at the begining of a whitespace.
14+ // is at the beginning of a whitespace.
15
16 // Below, "row" means a line in the terminal, while "line" means (l *Line).
17