Skip to content

Commit 4bc05d2

Browse files
committed
Fix key
1 parent f12a3a3 commit 4bc05d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/xtd.core.examples/configuration/file_settings/src/file_settings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ auto write_file_settings() {
99
file.top_file_comment("Settings file used by file_settings example.\nCopyright (c) 2024 Gammasoft. All rights reserved.");
1010
file.write("auto_close", true);
1111
file.write("caption", "file_settings example");
12-
file.write("Thread \"Process\"", "timeout_", 100_ms);
12+
file.write("Thread \"Process\"", "timeout", 100_ms);
1313
file.save();
1414
}
1515

@@ -27,7 +27,7 @@ auto read_file_settings() {
2727
console::write_line("read keys :");
2828
console::write_line("auto_close = {}", file.read("auto_close", false));
2929
console::write_line("caption = {}", file.read("caption", "example"));
30-
console::write_line("Thread \"Process\"", "time_out = {}", file.read("timeout_", 50_ms));
30+
console::write_line("Thread \"Process\"", "time_out = {}", file.read("timeout", 50_ms));
3131
console::write_line("----------------------------------------");
3232
}
3333

@@ -49,7 +49,7 @@ auto main() -> int {
4949
// caption = file_settings example
5050
//
5151
// [Thread "Process"]
52-
// timeout_ = 00:00:00.1000000
52+
// timeout = 00:00:00.1000000
5353
//
5454
// ----------------------------------------
5555
// read keys :

0 commit comments

Comments
 (0)