docs(web): fix reference to OffscreenCanvas (#187)

This commit is contained in:
Benoît Cortier 2023-12-15 05:42:31 -05:00 committed by GitHub
parent 09b8126909
commit 211db6fc6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<Self, SoftBufferError>;
/// 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.