summaryrefslogtreecommitdiff
path: root/ex2.rs
diff options
context:
space:
mode:
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>2015-09-14 22:26:38 -0400
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>2015-09-14 22:26:38 -0400
commitf238bdc34ec1eb0f3a54eced19532723f4490e34 (patch)
treedec4605b172dcc379d5daff577a8ea4e27abbc6c /ex2.rs
parenta24f0f939815132f6aec46ec5547ba4c51af635c (diff)
Create ex2.rs
Diffstat (limited to 'ex2.rs')
-rw-r--r--ex2.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ex2.rs b/ex2.rs
new file mode 100644
index 0000000..b0c7ca2
--- /dev/null
+++ b/ex2.rs
@@ -0,0 +1,9 @@
+// Make me compile!
+
+fn something() -> String {
+ "hi!"
+}
+
+fn main() {
+ println!("{}", something());
+}