Skip to content

Commit e3ccb5f

Browse files
authored
docs: fix live demo rust code (#435)
1 parent 936cc55 commit e3ccb5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/landing/live-demo-code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Transformer {
3232
}
3333

3434
#[napi]
35-
pub fn webp(&self) -> Result<Uint8Array> {
35+
pub fn to_webp(&self) -> Result<Uint8Array> {
3636
let image = image::load_from_memory(&self.inner)?;
3737
let webp = image.to_webp().map_err(|e| Error::from(e.to_string()))?;
3838
Ok(webp.into())

0 commit comments

Comments
 (0)