Avril 4 years ago
parent 1f0880329a
commit f070e82434
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,7 +1,7 @@
[package] [package]
name = "malloc-array" name = "malloc-array"
description = "libc heap array allocator" description = "libc heap array allocator"
version = "1.4.3" version = "1.4.4"
authors = ["Avril <flanchan@cumallover.me>"] authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018" edition = "2018"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"

@ -33,7 +33,7 @@ The library also provides the `InitIter` type, which is a mutable iterator for `
let mut array = heap![String; 10]; let mut array = heap![String; 10];
for mut init in array.initialise() for mut init in array.initialise()
{ {
init.set(format!("string!")); init.put(format!("string!"));
// Also see docs for `init::Init` type. // Also see docs for `init::Init` type.
} }
drop(array); // This is now safe. drop(array); // This is now safe.

Loading…
Cancel
Save