mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 08:31:04 +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:
@@ -13,7 +13,7 @@ package ExecutableSemanticsTest api;
|
||||
|
||||
// Test that assignment performs a copy and does not create an alias.
|
||||
|
||||
fn main() -> i32 {
|
||||
fn Main() -> i32 {
|
||||
var x: i32 = -1;
|
||||
{
|
||||
var y: i32 = 0;
|
||||
|
||||
@@ -13,7 +13,7 @@ package ExecutableSemanticsTest api;
|
||||
|
||||
// Test that assignment performs a copy and does not create an alias.
|
||||
|
||||
fn main() -> i32 {
|
||||
fn Main() -> i32 {
|
||||
var x: i32 = 0;
|
||||
var y: i32 = x;
|
||||
x = 1;
|
||||
|
||||
Reference in New Issue
Block a user