mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 05:50:29 +00:00
commit
f2f35b6f98
@ -29,7 +29,7 @@ where
|
||||
///
|
||||
/// let mut map: LinearMap<&str, isize, [_; 8]> = LinearMap::new();
|
||||
/// ```
|
||||
pub fn new() -> Self {
|
||||
pub const fn new() -> Self {
|
||||
LinearMap { buffer: Vec::new() }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user