From 197a52889f00d2b90fe67cf10d274db6761cbbb3 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 24 May 2019 13:57:05 +0700 Subject: Improve doc comment --- src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.rs b/src/auth.rs index 7cd11fe..762746b 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -53,7 +53,7 @@ pub fn parse_basic_auth( }) } -/// Verify authentication +/// Return `true` if `basic_auth` is matches any of `required_auth` pub fn match_auth(basic_auth: BasicAuthParams, required_auth: &[RequiredAuth]) -> bool { required_auth.iter().any( |RequiredAuth { username, password }| -- cgit v1.2.3