summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-09-11 19:29:20 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-09-11 19:29:20 +0200
commit75349a86ba872e8bd88f6a7ce625b2b6ca81c893 (patch)
treecdb89e1f4b6fcf55b6e026d1a22dca6a20a2ee75
parentFix line wrapping not working on history (diff)
Fix typos
-rw-r--r--cmd/senpai/main.go2
-rw-r--r--commands.go2
-rw-r--r--irc/session.go4
-rw-r--r--ui/buffers.go8
4 files changed, 8 insertions, 8 deletions
diff --git a/cmd/senpai/main.go b/cmd/senpai/main.go
index c9a581f..8d56cef 100644
--- a/cmd/senpai/main.go
+++ b/cmd/senpai/main.go
@@ -35,7 +35,7 @@ func main() {
cfg, err := senpai.LoadConfigFile(configPath)
if err != nil {
- fmt.Fprintf(os.Stderr, "failed to load the required configuraiton file at %q: %s\n", configPath, err)
+ fmt.Fprintf(os.Stderr, "failed to load the required configuration file at %q: %s\n", configPath, err)
os.Exit(1)
}
diff --git a/commands.go b/commands.go
index 626ba00..78cb780 100644
--- a/commands.go
+++ b/commands.go
@@ -441,7 +441,7 @@ func (app *App) handleInput(buffer, content string) error {
return noCommand(app, buffer, rawArgs)
}
if cmdName == "" {
- return fmt.Errorf("lone slash at the begining")
+ return fmt.Errorf("lone slash at the beginning")
}
var chosenCMDName string
diff --git a/irc/session.go b/irc/session.go
index 9f00dee..d4eec21 100644
--- a/irc/session.go
+++ b/irc/session.go
@@ -88,7 +88,7 @@ type Channel struct {
TopicTime time.Time // the last time the topic has been changed.
Secret bool // whether the channel is on the server channel list.
- complete bool // whether this stucture is fully initialized.
+ complete bool // whether this structure is fully initialized.
}
// SessionParams defines how to connect to an IRC server.
@@ -174,7 +174,7 @@ func (s *Session) Close() {
close(s.out)
}
-// HasCapability reports whether the given capability has been negociated
+// HasCapability reports whether the given capability has been negotiated
// successfully.
func (s *Session) HasCapability(capability string) bool {
_, ok := s.enabledCaps[capability]
diff --git a/ui/buffers.go b/ui/buffers.go
index a24051e..cb12c1e 100644
--- a/ui/buffers.go
+++ b/ui/buffers.go
@@ -93,12 +93,12 @@ func (l *Line) NewLines(width int) []int {
x := 0
for i := 1; i < len(l.splitPoints); i++ {
// Iterate through the split points 2 by 2. Split points are placed at
- // the begining of whitespace (see IsSplitRune) and at the begining of
- // non-whitespace. Iterating on 2 points each time, sp1 and sp2, allow
- // consideration of a "word" of (non-)whitespace.
+ // the beginning of whitespace (see IsSplitRune) and at the beginning
+ // of non-whitespace. Iterating on 2 points each time, sp1 and sp2,
+ // allows consideration of a "word" of (non-)whitespace.
// Split points have the index I in the string and the width X of the
// screen. Finally, the Split field is set to true if the split point
- // is at the begining of a whitespace.
+ // is at the beginning of a whitespace.
// Below, "row" means a line in the terminal, while "line" means (l *Line).