1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00

Two little typos on comments (#835)

This commit is contained in:
Diego Siqueira 2017-02-02 17:50:17 -02:00 committed by Vishal Rana
parent c7c4395fbd
commit a8b6864be3
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func TestMethodOverride(t *testing.T) {
m(h)(c) m(h)(c)
assert.Equal(t, echo.DELETE, req.Method) assert.Equal(t, echo.DELETE, req.Method)
// Override with query paramter // Override with query parameter
m = MethodOverrideWithConfig(MethodOverrideConfig{Getter: MethodFromQuery("_method")}) m = MethodOverrideWithConfig(MethodOverrideConfig{Getter: MethodFromQuery("_method")})
req, _ = http.NewRequest(echo.POST, "/?_method="+echo.DELETE, nil) req, _ = http.NewRequest(echo.POST, "/?_method="+echo.DELETE, nil)
rec = httptest.NewRecorder() rec = httptest.NewRecorder()

View File

@ -288,7 +288,7 @@ func (n *node) checkMethodNotAllowed() HandlerFunc {
return NotFoundHandler return NotFoundHandler
} }
// Find lookup a handler registed for method and path. It also parses URL for path // Find lookup a handler registered for method and path. It also parses URL for path
// parameters and load them into context. // parameters and load them into context.
// //
// For performance: // For performance: