-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix linter issues (docs) #370
Conversation
@@ -43,6 +43,8 @@ type Route struct { | |||
buildVarsFunc BuildVarsFunc | |||
} | |||
|
|||
// SkipClean bypasses cleaning the path, which includes removing duplicate | |||
// slashes and URL encoding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's actually not what this function does. It reports whether the SkipClean option is enabled for this route.
Ah, yes. Will fix.
…On Mon, Apr 30, 2018 at 9:23 PM Kamil Kisiel ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In route.go
<#370 (comment)>:
> @@ -43,6 +43,8 @@ type Route struct {
buildVarsFunc BuildVarsFunc
}
+// SkipClean bypasses cleaning the path, which includes removing duplicate
+// slashes and URL encoding.
That's actually not what this function does. It reports whether the
SkipClean option is enabled for this route.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#370 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABIcIElAtZT-Z9dkWF3ZuKFJ5g2s8nCks5tt-MwgaJpZM4Ttg9t>
.
|
@@ -12,7 +12,7 @@ type middleware interface { | |||
Middleware(handler http.Handler) http.Handler | |||
} | |||
|
|||
// MiddlewareFunc also implements the middleware interface. | |||
// Middleware also implements the middleware interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it'd be a good idea to remove the word "also":
// Middleware implements the middleware interface.
When reading documentation for this method, it might be confusing. "Middleware also implements it? In addition to what?"
@@ -13,8 +13,11 @@ import ( | |||
) | |||
|
|||
var ( | |||
// ErrMethodMismatch is returned when the error in the request does not match |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect "when the error in the request" should be "when the method in the request".
Fixes in #375 |
No description provided.