mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 14:16:37 +00:00
Rename main to Main for Carbon style consistency (#939)
Main() is more consistency with Carbon's naming guidelines. C# offers some precedent: https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/main-command-line
This commit is contained in:
1 parent
17be4adec6
commit
6d822ababb
126 files changed
+130
-130
No files matched your search
@@ -9,6 +9,6 @@
|
||||
// AUTOUPDATE: executable_semantics %s
|
||||
// CHECK: COMPILATION ERROR: {{.*}}/executable_semantics/testdata/package/fail_missing.carbon:12: syntax error, unexpected FN, expecting PACKAGE
|
||||
|
||||
fn main() -> i32 {
|
||||
fn Main() -> i32 {
|
||||
return 0;
|
||||
}
|
||||
@@ -11,6 +11,6 @@
|
||||
|
||||
package ExecutableSemanticsTest library "Foo" api;
|
||||
|
||||
fn main() -> i32 {
|
||||
fn Main() -> i32 {
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user