aboutsummaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'args.go')
-rw-r--r--args.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/args.go b/args.go
index 2beca35..c4f6904 100644
--- a/args.go
+++ b/args.go
@@ -118,7 +118,7 @@ func (a *Args) QueryString() []byte {
// Sort sorts Args by key and then value using 'f' as comparison function.
//
-// For example args.Sort(bytes.Compare)
+// For example args.Sort(bytes.Compare).
func (a *Args) Sort(f func(x, y []byte) int) {
sort.SliceStable(a.args, func(i, j int) bool {
n := f(a.args[i].key, a.args[j].key)
@@ -229,7 +229,7 @@ func (a *Args) SetBytesKV(key, value []byte) {
// SetNoValue sets only 'key' as argument without the '='.
//
-// Only key in argument, like key1&key2
+// Only key in argument, like key1&key2.
func (a *Args) SetNoValue(key string) {
a.args = setArg(a.args, key, "", argsNoValue)
}