From 4d1c782834aa6c66b9f3962c3fe4281b64bcc289 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 21 Mar 2016 01:36:47 -0700 Subject: [PATCH 1/2] Add a Rust file so GitHub recognizes the language See https://github.com/zhaopuming/awesome-d/commits/master/hello.d --- hello.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 hello.rs diff --git a/hello.rs b/hello.rs new file mode 100644 index 0000000..3b2b36f --- /dev/null +++ b/hello.rs @@ -0,0 +1,3 @@ +gn main() { + println!("hello, world"); +} From 19f200562acb78ce3b62bfa2835006e86190f0c0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 21 Mar 2016 01:37:12 -0700 Subject: [PATCH 2/2] Modify a Rust file so GitHub recognizes the language See https://github.com/zhaopuming/awesome-d/commits/master/hello.d --- hello.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello.rs b/hello.rs index 3b2b36f..2e6431c 100644 --- a/hello.rs +++ b/hello.rs @@ -1,3 +1,3 @@ -gn main() { +fn main() { println!("hello, world"); }