From b6448fc01629c02196a439075db4d09d5c7b2091 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 21 Jul 2021 15:48:15 -0700 Subject: [PATCH] Clarify 'Options::Missing' exception in 'FileServer'. --- core/lib/src/fs/server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lib/src/fs/server.rs b/core/lib/src/fs/server.rs index 282c76db..e806a932 100644 --- a/core/lib/src/fs/server.rs +++ b/core/lib/src/fs/server.rs @@ -118,7 +118,8 @@ impl FileServer { /// /// # Panics /// - /// Panics if `path` does not exist or is not a directory. + /// If [`Options::Missing`] is not set, panics if `path` does not exist or + /// is not a directory. Otherwise does not panic. /// /// # Example ///