Skip to content

Instantly share code, notes, and snippets.

@oscaralanpierce
Created May 19, 2021 06:49
Show Gist options
  • Select an option

  • Save oscaralanpierce/68c45fa47bd19877537c05bc8a002ae5 to your computer and use it in GitHub Desktop.

Select an option

Save oscaralanpierce/68c45fa47bd19877537c05bc8a002ae5 to your computer and use it in GitHub Desktop.
git diff output
diff --git a/hello_world.rb b/hello_world.rb
index 733c205..7146b79 100644
--- a/hello_world.rb
+++ b/hello_world.rb
@@ -1 +1,3 @@
-puts 'Hello World!'
+puts 'Please enter a name:'
+name = gets
+puts 'Hello ' + name + '!'
(END)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment