From 7978bacbfe32b70a8cb8dba0262fbbec9a31940f Mon Sep 17 00:00:00 2001 From: Winston Tokuhisa Date: Sun, 10 Jul 2016 03:59:19 +0000 Subject: [PATCH 1/2] Done. --- .learn | 0 .rspec | 0 CONTRIBUTING.md | 0 LICENSE.md | 0 README.md | 0 lib/a_division_by_zero_error.rb | 2 +- lib/a_name_error.rb | 4 +--- lib/a_syntax_error.rb | 2 +- lib/a_type_error.rb | 2 +- spec/no_ruby_errors_spec.rb | 0 spec/spec_helper.rb | 0 11 files changed, 4 insertions(+), 6 deletions(-) mode change 100644 => 100755 .learn mode change 100644 => 100755 .rspec mode change 100644 => 100755 CONTRIBUTING.md mode change 100644 => 100755 LICENSE.md mode change 100644 => 100755 README.md mode change 100644 => 100755 lib/a_division_by_zero_error.rb mode change 100644 => 100755 lib/a_name_error.rb mode change 100644 => 100755 lib/a_syntax_error.rb mode change 100644 => 100755 lib/a_type_error.rb mode change 100644 => 100755 spec/no_ruby_errors_spec.rb mode change 100644 => 100755 spec/spec_helper.rb diff --git a/.learn b/.learn old mode 100644 new mode 100755 diff --git a/.rspec b/.rspec old mode 100644 new mode 100755 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/LICENSE.md b/LICENSE.md old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/lib/a_division_by_zero_error.rb b/lib/a_division_by_zero_error.rb old mode 100644 new mode 100755 index fa27ef36..21979952 --- a/lib/a_division_by_zero_error.rb +++ b/lib/a_division_by_zero_error.rb @@ -1,3 +1,3 @@ 42 / 6 -42 / 0 +42 / 1 diff --git a/lib/a_name_error.rb b/lib/a_name_error.rb old mode 100644 new mode 100755 index bad266d9..bf6751fa --- a/lib/a_name_error.rb +++ b/lib/a_name_error.rb @@ -1,3 +1 @@ -"hello world" - -hello_world +hello_world = "hello world" diff --git a/lib/a_syntax_error.rb b/lib/a_syntax_error.rb old mode 100644 new mode 100755 index 5252c8f7..37c73155 --- a/lib/a_syntax_error.rb +++ b/lib/a_syntax_error.rb @@ -1,3 +1,3 @@ x = 1 -x = +x = 2 diff --git a/lib/a_type_error.rb b/lib/a_type_error.rb old mode 100644 new mode 100755 index 1217fd52..6284e4e3 --- a/lib/a_type_error.rb +++ b/lib/a_type_error.rb @@ -1,3 +1,3 @@ 1 + 1 -1 + "is the loneliest number" +"1" + "is the loneliest number" diff --git a/spec/no_ruby_errors_spec.rb b/spec/no_ruby_errors_spec.rb old mode 100644 new mode 100755 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb old mode 100644 new mode 100755 From dc84600f95e37680f536cac698e3cfe43f37f0b2 Mon Sep 17 00:00:00 2001 From: Winston Tokuhisa Date: Sat, 30 Jun 2018 10:48:02 -0400 Subject: [PATCH 2/2] Refined Word Choice --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9d60fca..cabe204a 100755 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The interpreter does the best job it can to tell you what it thinks went wrong. This is a [Ruby Error Type](http://www.ruby-doc.org/core-2.2.0/Exception.html). -You've solved games of *Clue* with less information. This is one of the best parts of programming: debugging and fixing errors. It's like you're a detective solving a crime. The only bad thing is that more often than not, you're also the criminal that caused the error in the first place. +You've solved games of *Clue* with less information. This is one of the most important parts of programming: debugging and fixing errors. It's like you're a detective solving a crime. The only bad thing is that more often than not, you're also the criminal that caused the error in the first place. Errors are clues, and reading them is the interpreter telling you what to do to fix the program and move on.