diff --git a/docs/spec.json b/docs/spec.json index 16e9757..5f54396 100644 --- a/docs/spec.json +++ b/docs/spec.json @@ -2068,7 +2068,7 @@ "x-go-package": "github.com/gotify/server/model" }, "Paging": { - "description": "The Paging holds holds information about the limit and making requests to the next page.", + "description": "The Paging holds information about the limit and making requests to the next page.", "type": "object", "title": "Paging Model", "required": [ diff --git a/model/paging.go b/model/paging.go index 855c6cd..a58f5ad 100644 --- a/model/paging.go +++ b/model/paging.go @@ -2,7 +2,7 @@ package model // Paging Model // -// The Paging holds holds information about the limit and making requests to the next page. +// The Paging holds information about the limit and making requests to the next page. // // swagger:model Paging type Paging struct { diff --git a/plugin/compat/v1.go b/plugin/compat/v1.go index e829771..b15cfa1 100644 --- a/plugin/compat/v1.go +++ b/plugin/compat/v1.go @@ -18,7 +18,7 @@ func (c PluginV1) APIVersion() string { return "v1" } -// PluginInfo implements conpat/Plugin +// PluginInfo implements compat/Plugin func (c PluginV1) PluginInfo() Info { return Info{ Version: c.Info.Version, diff --git a/plugin/manager.go b/plugin/manager.go index fc70a7b..9b978b6 100644 --- a/plugin/manager.go +++ b/plugin/manager.go @@ -43,7 +43,7 @@ type Notifier interface { Notify(userID uint, message *model.MessageExternal) } -// Manager is an encapusulating layer for plugins and manages all plugins and its instances. +// Manager is an encapsulating layer for plugins and manages all plugins and its instances. type Manager struct { mutex *sync.RWMutex instances map[uint]compat.PluginInstance diff --git a/test/asserts.go b/test/asserts.go index 775378f..0225a8b 100644 --- a/test/asserts.go +++ b/test/asserts.go @@ -34,7 +34,7 @@ func (c unreadableReader) Read([]byte) (int, error) { return 0, errors.New("this reader cannot be read") } -// UnreadableReader returns an unreadadbe reader, used to mock IO issues. +// UnreadableReader returns an unreadable reader, used to mock IO issues. func UnreadableReader() io.Reader { return unreadableReader{} } diff --git a/test/filepath.go b/test/filepath.go index 11afd37..91b514b 100644 --- a/test/filepath.go +++ b/test/filepath.go @@ -7,7 +7,7 @@ import ( "runtime" ) -// GetProjectDir returns the currect apsolute path of this project +// GetProjectDir returns the correct absolute path of this project func GetProjectDir() string { _, f, _, _ := runtime.Caller(0) projectDir, _ := filepath.Abs(path.Join(filepath.Dir(f), "../"))