1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-23 16:21:06 +01:00

migrate deprecated method in docs

This commit is contained in:
Rob Ede 2022-07-01 12:40:00 +01:00
parent df5257c373
commit b62f1b4ef7
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -649,7 +649,7 @@ impl ResourceDef {
/// resource.capture_match_info_fn(
/// path,
/// // 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")),
/// )
/// }
///