mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 07:45:49 +01: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:
@@ -17,6 +17,6 @@ fn map[T:! Type](f: __Fn (T) -> T, tuple: (T, T)) -> (T, T) {
|
||||
|
||||
fn inc(x: i32) -> i32 { return x + 1; }
|
||||
|
||||
fn main() -> i32 {
|
||||
fn Main() -> i32 {
|
||||
return map(inc, (0, 2))[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user