Skip to content

Commit

Permalink
Fix misspellings in ruby from other languages (en, zh_cn)
Browse files Browse the repository at this point in the history
Closes #1051.
  • Loading branch information
isoroku authored and JuanitoFatas committed Apr 18, 2015
1 parent 876630e commit 65ba0b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions en/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ deliver(via: "Pony Express", from: "B", to: "A")

In Ruby, everything except **nil** and **false** is considered true. In
C, Python and many other languages, 0 and possibly other values, such as
empty lists, are consided false. Take a look at the following Python
empty lists, are considered false. Take a look at the following Python
code (the example applies to other languages, too):

{% highlight python %}
Expand Down Expand Up @@ -423,7 +423,7 @@ though. They are not methods, and cannot be redefined:
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
{% endhighlight %}

In addition, `+=`, `*=` etc. are just abbrevations for `var = var + other_var`,
In addition, `+=`, `*=` etc. are just abbreviations for `var = var + other_var`,
`var = var * other_var`, etc. and therefore cannot be redefined.

## Finding Out More
Expand Down
2 changes: 1 addition & 1 deletion zh_cn/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ methods, and cannot be redefined:
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
{% endhighlight %}

In addition, `+=`, `*=` etc. are just abbrevations for `var = var + other_var`,
In addition, `+=`, `*=` etc. are just abbreviations for `var = var + other_var`,
`var = var * other_var`, etc. and therefore cannot be redefined.

## Finding Out More
Expand Down

0 comments on commit 65ba0b7

Please sign in to comment.