diff --git a/docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md b/docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md index 1a0624a..de75b16 100644 --- a/docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md +++ b/docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md @@ -83,9 +83,8 @@ Either way, the contents of `utils.rs` define a single public function `set_pani ```rust // When the `wee_alloc` feature is enabled, use `wee_alloc` as the global - // When the `wee_alloc` feature is enabled, use `wee_alloc` as the global // allocator. - // allocator. #[cfg(feature = "wee_alloc")] - if #[cfg(feature = "wee_alloc")] { #[global_allocator] + // allocator. + if #[cfg(feature = "wee_alloc")] { #[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; ```