Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AslD committed Jul 29, 2024
1 parent 24fa396 commit c05b764
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions cli/assets/templates/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![no_std]

#[cfg(not(std))]
#[macro_use]
extern crate alloc;
mod wasm4;
use wasm4::*;
Expand Down
3 changes: 1 addition & 2 deletions site/docs/tutorials/snake/creating-the-snake.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ You can learn more about these traits in the [rust-book](https://doc.rust-lang.o
- [Clone, Copy](https://doc.rust-lang.org/book/appendix-03-derivable-traits.html?highlight=partialEq#clone-and-copy-for-duplicating-values)

```rust
use alloc::vec::{self, Vec};
use crate::wasm4;
use alloc::vec::Vec;

#[derive(Clone, Copy, PartialEq, Eq)]
pub struct Point {
Expand Down
3 changes: 1 addition & 2 deletions site/docs/tutorials/snake/setting-color-palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ end

```rust
#![no_std]

#[cfg(not(std))]
#[macro_use]
extern crate alloc;
mod wasm4;

Expand Down

0 comments on commit c05b764

Please sign in to comment.