Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Cleaning up some docs #102

Merged
merged 3 commits into from
Jan 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion default_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (d *DefaultContext) Param(key string) string {
}

// ParamInt tries to convert the requested parameter to
// an int. It will return an error if there is a problem.
// an int. It will return an error if there is a problem.
func (d *DefaultContext) ParamInt(key string) (int, error) {
k := d.Params().Get(key)
i, err := strconv.Atoi(k)
Expand Down
4 changes: 2 additions & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
// mean returning an error.
/*
func (c Context) error {
return C.Render(200, render.String("Hello World!"))
return c.Render(200, render.String("Hello World!"))
}

func (c Context) error {
return C.Redirect(301, "http://github.com/gobuffalo/buffalo")
return c.Redirect(301, "http://github.com/gobuffalo/buffalo")
}

func (c Context) error {
Expand Down
4 changes: 2 additions & 2 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ type Session struct {
res http.ResponseWriter
}

// Save the current session
// Save the current session.
func (s *Session) Save() error {
return s.Session.Save(s.req, s.res)
}

// Get a value from the current session
// Get a value from the current session.
func (s *Session) Get(name interface{}) interface{} {
return s.Session.Values[name]
}
Expand Down