From d466eb8f664a4436e5913a387fc26446f161c22a Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 25 May 2022 17:53:39 +0000 Subject: [PATCH] Explain `Comments::parse` arguments --- ui_test/src/comments.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui_test/src/comments.rs b/ui_test/src/comments.rs index 193cda68b9a..64f999f5410 100644 --- a/ui_test/src/comments.rs +++ b/ui_test/src/comments.rs @@ -39,6 +39,8 @@ impl Comments { Self::parse(path, &content) } + /// Parse comments in `content`. + /// `path` is only used to emit diagnostics if parsing fails. pub fn parse(path: &Path, content: &str) -> Self { let mut this = Self::default(); let error_pattern_regex =