From 310134a1458845c48668181670f79f48a1d22a69 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Wed, 13 Feb 2019 12:58:55 +1300 Subject: [PATCH] Fix function comments based on best practices from Comment First Word As Subject Signed-off-by: CodeLingo Bot --- martini.go | 2 +- router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/martini.go b/martini.go index 0ce4f3d..d7790b5 100644 --- a/martini.go +++ b/martini.go @@ -75,7 +75,7 @@ func (m *Martini) ServeHTTP(res http.ResponseWriter, req *http.Request) { m.createContext(res, req).run() } -// Run the http server on a given host and port. +// RunOnAddr: Run the http server on a given host and port. func (m *Martini) RunOnAddr(addr string) { // TODO: Should probably be implemented using a new instance of http.Server in place of // calling http.ListenAndServer directly, so that it could be stored in the martini struct for later use. diff --git a/router.go b/router.go index 3abbabb..259c98c 100644 --- a/router.go +++ b/router.go @@ -234,7 +234,7 @@ const ( ExactMatch ) -//Higher number = better match +// BetterThan: Higher number = better match func (r RouteMatch) BetterThan(o RouteMatch) bool { return r > o }