Skip to content

Commit e894232

Browse files
Dean KarnDean Karn
authored andcommitted
correct some spelling mistakes
1 parent e8d2089 commit e894232

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

helpers.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import (
99
"strings"
1010
)
1111

12-
// URLParam returns the params extracted from the URL
13-
// not to be confused with Query Parameters
12+
// RequestVars returns the request scoped variables tracked by pure
1413
func RequestVars(r *http.Request) ReqVars {
1514

1615
rv := r.Context().Value(defaultContextIdentifier)

pure.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ type Param struct {
8181
// It is therefore safe to read values by the index.
8282
type Params []Param
8383

84+
// Get returns the URL parameter for the given key, or blank if not found
8485
func (p Params) Get(key string) (param string) {
8586

8687
for i := 0; i < len(p); i++ {

pure_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ func TestAllMethods(t *testing.T) {
5252
}
5353
})
5454

55-
tooManyParams := ""
56-
57-
for i := 0; i < 257; i++ {
58-
tooManyParams += "/" + "parm" + strconv.Itoa(i) + "/:parm" + strconv.Itoa(i)
59-
}
60-
6155
tests := []struct {
6256
method string
6357
path string

0 commit comments

Comments
 (0)