Skip to content

Commit

Permalink
docs(web): fix reference to OffscreenCanvas (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit authored Dec 15, 2023
1 parent 09b8126 commit 211db6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 211db6f

Please sign in to comment.