From 85b9ba0701fdce1c44b73ed0ff1566e73d330c70 Mon Sep 17 00:00:00 2001 From: timofey Date: Sat, 1 Jul 2023 00:22:52 +0000 Subject: [PATCH] `ResolutionError::map_parse` docs --- src/rcore/resolution.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rcore/resolution.rs b/src/rcore/resolution.rs index 733f35b..f4de099 100644 --- a/src/rcore/resolution.rs +++ b/src/rcore/resolution.rs @@ -10,6 +10,7 @@ pub enum ResolutionError { } impl ResolutionError { + /// Maps only the [`ResolutionError::Parse`] variant of the overall error. pub fn map_parse(self, f: impl FnOnce(P) -> Px) -> ResolutionError { match self { Self::Lookup(l) => ResolutionError::Lookup(l),