From 735d916f98b88f48cd91b55973e12fabec26da95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Cortier?= Date: Thu, 14 Dec 2023 21:57:17 -0500 Subject: [PATCH] docs(web): fix reference to OffscreenCanvas --- src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web.rs b/src/web.rs index 1caa71e..0d04352 100644 --- a/src/web.rs +++ b/src/web.rs @@ -275,7 +275,7 @@ pub trait SurfaceExtWeb: Sized { /// - If a another context then "2d" was already created for this canvas. fn from_canvas(canvas: HtmlCanvasElement) -> Result; - /// Creates a new instance of this struct, using the provided [`HtmlCanvasElement`]. + /// Creates a new instance of this struct, using the provided [`OffscreenCanvas`]. /// /// # Errors /// If a another context then "2d" was already created for this canvas.