From 6fb7373c87392d3babf5c8ed6abd1134526241d6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 6 Mar 2021 08:01:35 +0100 Subject: Add warning to Containers::get() method Signed-off-by: Matthias Beyer --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index a9d9264..0e2fdd2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -635,6 +635,11 @@ impl<'docker> Containers<'docker> { } /// Returns a reference to a set of operations available to a specific container instance + /// + /// # Warning + /// + /// This function does not check whether the container with `name` actually exists and returns + /// a potentially invalid handle. pub fn get( &self, name: S, -- cgit v1.2.3