From bce3b9209848f7c1054313e6624801621e819e22 Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Wed, 30 Aug 2023 15:35:37 +0200 Subject: [PATCH] Update documentation --- examples/xtd.core.examples/mains/main1/src/main1.cpp | 5 ++--- examples/xtd.core.examples/mains/main2/src/main2.cpp | 4 ++-- examples/xtd.core.examples/mains/main3/src/main3.cpp | 5 ++--- examples/xtd.core.examples/mains/main4/src/main4.cpp | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/examples/xtd.core.examples/mains/main1/src/main1.cpp b/examples/xtd.core.examples/mains/main1/src/main1.cpp index b45798969c46..54962e20c383 100644 --- a/examples/xtd.core.examples/mains/main1/src/main1.cpp +++ b/examples/xtd.core.examples/mains/main1/src/main1.cpp @@ -19,11 +19,10 @@ namespace main1_example { } startup_(main1_example::program); -// startup_(main1_example::program); is same as : +// Is the same as : // // auto main(int argc, char* argv[])->int { -// main1_example::program::main(); -// return environment::exit_code(); +// return startup::safe_run(main1_example::program::main, argc, argv); // } diff --git a/examples/xtd.core.examples/mains/main2/src/main2.cpp b/examples/xtd.core.examples/mains/main2/src/main2.cpp index 2e5a2b33636a..18cd68a01bae 100644 --- a/examples/xtd.core.examples/mains/main2/src/main2.cpp +++ b/examples/xtd.core.examples/mains/main2/src/main2.cpp @@ -18,10 +18,10 @@ namespace main2_example { } startup_(main2_example::program); -// startup_(main2_example::program); is same as : +// Is the same as : // // auto main(int argc, char* argv[])->int { -// return main2_example::program::main(); +// return startup::safe_run(main2_example::program::main, argc, argv); // } diff --git a/examples/xtd.core.examples/mains/main3/src/main3.cpp b/examples/xtd.core.examples/mains/main3/src/main3.cpp index 282a6773fd77..b140c8aa6082 100644 --- a/examples/xtd.core.examples/mains/main3/src/main3.cpp +++ b/examples/xtd.core.examples/mains/main3/src/main3.cpp @@ -20,11 +20,10 @@ namespace main3_example { } startup_(main3_example::program); -// startup_(main3_example::program); is same as : +// Is the same as : // // auto main(int argc, char* argv[])->int { -// main3_example::program::main({argv + 1, argv + argc}); -// return environment::exit_code(); +// return startup::safe_run(main3_example::program::main, argc, argv); // } diff --git a/examples/xtd.core.examples/mains/main4/src/main4.cpp b/examples/xtd.core.examples/mains/main4/src/main4.cpp index 68a0962d52e6..cbe9398e984a 100644 --- a/examples/xtd.core.examples/mains/main4/src/main4.cpp +++ b/examples/xtd.core.examples/mains/main4/src/main4.cpp @@ -18,10 +18,10 @@ namespace main4_example { } startup_(main4_example::program); -// startup_(main4_example::program); is same as : +// Is the same as : // // auto main(int argc, char* argv[])->int { -// return main4_example::program::main({argv + 1, argv + argc}); +// return startup::safe_run(main4_example::program::main, argc, argv); // }