mirror of
https://github.com/actix/actix-web.git
synced 2024-12-01 05:51:17 +00:00
migrate deprecated method in docs
This commit is contained in:
parent
df5257c373
commit
b62f1b4ef7
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ impl ResourceDef {
|
||||||
/// resource.capture_match_info_fn(
|
/// resource.capture_match_info_fn(
|
||||||
/// path,
|
/// path,
|
||||||
/// // when env var is not set, reject when path contains "admin"
|
/// // when env var is not set, reject when path contains "admin"
|
||||||
/// |res| !(!admin_allowed && res.path().contains("admin")),
|
/// |path| !(!admin_allowed && path.as_str().contains("admin")),
|
||||||
/// )
|
/// )
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue