Skip to content

Commit 62f5853

Browse files
author
hyd-dev
committed
Add missing newline to error message of the default OOM hook
1 parent 1d64637 commit 62f5853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ pub fn take_alloc_error_hook() -> fn(Layout) {
316316
}
317317

318318
fn default_alloc_error_hook(layout: Layout) {
319-
dumb_print(format_args!("memory allocation of {} bytes failed", layout.size()));
319+
dumb_print(format_args!("memory allocation of {} bytes failed\n", layout.size()));
320320
}
321321

322322
#[cfg(not(test))]

0 commit comments

Comments
 (0)