Skip to content

Commit 38cca22

Browse files
committed
Fix missig word in affordances pt2
1 parent d34b64c commit 38cca22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2020-02-16-affordance-for-errors-pt2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ The first reason is that it makes type checking easier (`is_a?(InventoryPolicy)`
187187

188188
Quick Reminder: Some APIs do not meet the user's expectations. Ex: Ruby's visibility modifiers (`private`, `public`, `protected`) have no effect when using `def self.method_name`.
189189

190-
This specific problem is such a common error pains me the utmost, because it is so unnecessary. Approximately 100% of other languages do not have this problem, by having visibility modifiers at the method definition level. In fact, it even works in Ruby, and many large companies have adopted this style. It may be inelegant, but it removes this opportunity for errors altogether:
190+
That this specific problem is such a common error pains me the utmost, because it is so unnecessary. Approximately 100% of other languages do not have this problem, by having visibility modifiers at the method definition level. In fact, it even works in Ruby, and many large companies have adopted this style. It may be inelegant, but it removes this opportunity for errors altogether:
191191

192192
```ruby
193193
class Foo

0 commit comments

Comments
 (0)