Skip to content

Commit ab9e155

Browse files
committed
It's the Rust heap
1 parent d9cd100 commit ab9e155

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/ark/src/debug.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ pub fn tidy_kind(kind: libr::SEXPTYPE) -> &'static str {
155155
/// other C longjumps from collapsing the debugging context. If a Rust panic
156156
/// occurs however, it is propagated as normal.
157157
///
158-
/// Note that the resulting string is stored on the R heap and never freed. This
159-
/// should only be used in a debugging context where leaking is not an issue.
158+
/// Note that the resulting string is stored on the Rust heap and never freed.
159+
/// This should only be used in a debugging context where leaking is not an
160+
/// issue.
160161
pub fn capture_console_output(cb: impl FnOnce()) -> *const ffi::c_char {
161162
let old = CAPTURE_CONSOLE_OUTPUT.swap(true, Ordering::SeqCst);
162163

0 commit comments

Comments
 (0)