Skip to content

Commit

Permalink
Lower blocks earlier (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog authored Jul 8, 2024
1 parent eb588a2 commit b0afc1e
Show file tree
Hide file tree
Showing 35 changed files with 273 additions and 225 deletions.
2 changes: 1 addition & 1 deletion book/src/sandboxing.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Memory limiting is performed using the [`with` function] in the
`rune::alloc::limit` module.

```rust
use rune::alloc::prelude::*;
use rune::alloc::limit;
use rune::alloc::Vec;

let f = limit::with(1024, || {
let mut vec = Vec::<u32>::try_with_capacity(256)?;
Expand Down
Loading

0 comments on commit b0afc1e

Please sign in to comment.