Skip to content

Commit f1ac44c

Browse files
committed
Update README.md
1 parent b371f7f commit f1ac44c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,16 @@ The classic first application 'Hello World'.
140140
```cpp
141141
#include <xtd/xtd>
142142

143-
auto main() -> int {
144-
console::background_color(console_color::blue);
145-
console::foreground_color(console_color::white);
146-
console::write_line("Hello, World!");
147-
}
143+
class example {
144+
public:
145+
static auto main() {
146+
console::background_color(console_color::blue);
147+
console::foreground_color(console_color::white);
148+
console::write_line("Hello, World!");
149+
}
150+
};
151+
152+
startup_(example::main);
148153
```
149154
150155
**or simply**

0 commit comments

Comments
 (0)