From a8af82e9a04ef8a83517da6aa90787581d524691 Mon Sep 17 00:00:00 2001 From: Timothy Liu Date: Sun, 4 Dec 2022 18:31:53 +0800 Subject: [PATCH] docs: :bug: definition of `main` function in c Make the definition of `main` function compatible with ISO C `int main()` -> `int main(void)` --- docs/languages/CSharp/CSharp_1_basic.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/languages/CSharp/CSharp_1_basic.mdx b/docs/languages/CSharp/CSharp_1_basic.mdx index f74332a5..a6616b1d 100644 --- a/docs/languages/CSharp/CSharp_1_basic.mdx +++ b/docs/languages/CSharp/CSharp_1_basic.mdx @@ -305,7 +305,7 @@ var code1 = """int i = 0;"""; var code2 = $"""int x = {x};"""; var code3 = $$""" #include - int main() { + int main(void) { const char *s = "{y} = {{y}}"; // {y} = 2 return 0; }