Skip to content

Commit 44f4ff3

Browse files
noamranjmattheis
authored andcommitted
Fix typos
Closes #197
1 parent 11e0a4b commit 44f4ff3

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@
20682068
"x-go-package": "github.com/gotify/server/model"
20692069
},
20702070
"Paging": {
2071-
"description": "The Paging holds holds information about the limit and making requests to the next page.",
2071+
"description": "The Paging holds information about the limit and making requests to the next page.",
20722072
"type": "object",
20732073
"title": "Paging Model",
20742074
"required": [

model/paging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package model
22

33
// Paging Model
44
//
5-
// The Paging holds holds information about the limit and making requests to the next page.
5+
// The Paging holds information about the limit and making requests to the next page.
66
//
77
// swagger:model Paging
88
type Paging struct {

plugin/compat/v1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (c PluginV1) APIVersion() string {
1818
return "v1"
1919
}
2020

21-
// PluginInfo implements conpat/Plugin
21+
// PluginInfo implements compat/Plugin
2222
func (c PluginV1) PluginInfo() Info {
2323
return Info{
2424
Version: c.Info.Version,

plugin/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type Notifier interface {
4343
Notify(userID uint, message *model.MessageExternal)
4444
}
4545

46-
// Manager is an encapusulating layer for plugins and manages all plugins and its instances.
46+
// Manager is an encapsulating layer for plugins and manages all plugins and its instances.
4747
type Manager struct {
4848
mutex *sync.RWMutex
4949
instances map[uint]compat.PluginInstance

test/asserts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (c unreadableReader) Read([]byte) (int, error) {
3434
return 0, errors.New("this reader cannot be read")
3535
}
3636

37-
// UnreadableReader returns an unreadadbe reader, used to mock IO issues.
37+
// UnreadableReader returns an unreadable reader, used to mock IO issues.
3838
func UnreadableReader() io.Reader {
3939
return unreadableReader{}
4040
}

test/filepath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"runtime"
88
)
99

10-
// GetProjectDir returns the currect apsolute path of this project
10+
// GetProjectDir returns the correct absolute path of this project
1111
func GetProjectDir() string {
1212
_, f, _, _ := runtime.Caller(0)
1313
projectDir, _ := filepath.Abs(path.Join(filepath.Dir(f), "../"))

0 commit comments

Comments
 (0)