Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
httpcheck authored and oiooj committed Apr 11, 2021
1 parent cb5069a commit 258f7b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (l *logger) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// An ops is a proxy.ServerOps implementation.
type ops struct{}

// NewContext crates a context.
// NewContext creates a context.
func (*ops) NewContext(r *http.Request) (context.Context, error) {
return context.Background(), nil
}
Expand Down Expand Up @@ -224,7 +224,7 @@ func (*ops) List(ctx context.Context, mpath string) (proxy.File, error) {
return os.Open(file)
}

// Latest fetch latest file.
// Latest fetches latest file.
func (*ops) Latest(ctx context.Context, path string) (proxy.File, error) {
d, err := download(module.Version{Path: path, Version: "latest"})
if err != nil {
Expand All @@ -233,7 +233,7 @@ func (*ops) Latest(ctx context.Context, path string) (proxy.File, error) {
return os.Open(d.Info)
}

// Info fetch info file.
// Info fetches info file.
func (*ops) Info(ctx context.Context, m module.Version) (proxy.File, error) {
d, err := download(m)
if err != nil {
Expand All @@ -242,7 +242,7 @@ func (*ops) Info(ctx context.Context, m module.Version) (proxy.File, error) {
return os.Open(d.Info)
}

// GoMod fetch go mod file.
// GoMod fetches go mod file.
func (*ops) GoMod(ctx context.Context, m module.Version) (proxy.File, error) {
d, err := download(m)
if err != nil {
Expand All @@ -251,7 +251,7 @@ func (*ops) GoMod(ctx context.Context, m module.Version) (proxy.File, error) {
return os.Open(d.GoMod)
}

// Zip fetch zip file.
// Zip fetches zip file.
func (*ops) Zip(ctx context.Context, m module.Version) (proxy.File, error) {
d, err := download(m)
if err != nil {
Expand Down

0 comments on commit 258f7b0

Please sign in to comment.