From c79ded140621ce03ea1f910f42c3b1796a8e2e3f Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 27 Feb 2023 14:36:57 +0000 Subject: [PATCH] Fixes for `get_webxdc_blob` documentation --- src/webxdc.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webxdc.rs b/src/webxdc.rs index de786ea99..12d9abd6b 100644 --- a/src/webxdc.rs +++ b/src/webxdc.rs @@ -670,8 +670,10 @@ impl Message { Ok(archive) } - /// Return file form inside an archive. + /// Return file from inside an archive. /// Currently, this works only if the message is an webxdc instance. + /// + /// `name` is the filename within the archive, e.g. `index.html`. pub async fn get_webxdc_blob(&self, context: &Context, name: &str) -> Result> { ensure!(self.viewtype == Viewtype::Webxdc, "No webxdc instance.");