1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-25 02:51:15 +00: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")),
/// )
/// }
///