Skip to content

Commit 6c1bbdf

Browse files
committed
fix(ffi): fixed create simple logger implementation, removed duplicated word in comment
1 parent a981878 commit 6c1bbdf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

c-cpp-book/src/ch14-unsafe-rust-and-ffi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ pub extern "C" fn create_simple_logger(file_name: *const std::os::raw::c_char, o
207207
return 1;
208208
}
209209
let file_name = file_name.unwrap();
210-
// Assume some defaults; we'll pass them in in real life
211-
let new_logger = SimpleLogger::new(file_name, false, LogLevel::CRITICAL);
210+
// Assume some defaults; we'll pass them in real life
211+
let new_logger = SimpleLogger::new(file_name, true, LogLevel::CRITICAL);
212212
// Check that we were able to construct the logger
213213
if new_logger.is_err() {
214214
return 1;

0 commit comments

Comments
 (0)