Fix typos

Closes #197
This commit is contained in:
Noa Amran 2019-06-10 21:31:22 -05:00 committed by Jannis Mattheis
parent 11e0a4b0df
commit 44f4ff31cb
6 changed files with 6 additions and 6 deletions

View File

@ -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": [

View File

@ -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 {

View File

@ -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,

View File

@ -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

View File

@ -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{}
}

View File

@ -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), "../"))