From 6c1bbdf8c2f66cc17e22f6eb8084f4de41f6c02b Mon Sep 17 00:00:00 2001 From: Uladzislau Borbut Date: Tue, 21 Apr 2026 16:59:21 +0200 Subject: [PATCH] fix(ffi): fixed create simple logger implementation, removed duplicated word in comment --- c-cpp-book/src/ch14-unsafe-rust-and-ffi.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c-cpp-book/src/ch14-unsafe-rust-and-ffi.md b/c-cpp-book/src/ch14-unsafe-rust-and-ffi.md index 4c43bb6..6af3147 100644 --- a/c-cpp-book/src/ch14-unsafe-rust-and-ffi.md +++ b/c-cpp-book/src/ch14-unsafe-rust-and-ffi.md @@ -207,8 +207,8 @@ pub extern "C" fn create_simple_logger(file_name: *const std::os::raw::c_char, o return 1; } let file_name = file_name.unwrap(); - // Assume some defaults; we'll pass them in in real life - let new_logger = SimpleLogger::new(file_name, false, LogLevel::CRITICAL); + // Assume some defaults; we'll pass them in real life + let new_logger = SimpleLogger::new(file_name, true, LogLevel::CRITICAL); // Check that we were able to construct the logger if new_logger.is_err() { return 1;