Skip to content

Commit 05b369f

Browse files
TalAterstomar
authored andcommitted
Fixed typos in en/try_ruby_320.md (#56)
The correct plural form of `parenthesis` is `parentheses`. * `Parentheses` refers to both the opening `(` **and** closing `)`. * `Parenthesis` refers to either the opening `(` **or** the closing `)` or very rarely to the content between two parentheses. In other words, you can use a method without the parentheses but not without the parenthesis.
1 parent 98a2886 commit 05b369f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

translations/en/try_ruby_320.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Remember when we changed the poem a little bit? We used:
1212
__poem.gsub("toast", "honeydew")__
1313

1414
The gsub method needs 2 arguments, which we passed to gsub by including two strings between
15-
parenthesis. _Arguments tell the method exactly what to do._
15+
parentheses. _Arguments tell the method exactly what to do._
1616

17-
### Parenthesis
18-
Actually, most of the time Ruby doesn't mind if you omit the parenthesis. So this would have
17+
### Parentheses
18+
Actually, most of the time Ruby doesn't mind if you omit the parentheses. So this would have
1919
worked too:
2020
__poem.gsub "toast", "honeydew"__
2121

@@ -25,10 +25,10 @@ obvious:
2525
puts "Hello"
2626
puts("Hello")
2727

28-
Yes __puts__ is also a method. Using puts with or without parenthesis is the same to Ruby, but the
29-
version without parenthesis is a bit easier to read. And it saves you valuable typing time!
28+
Yes __puts__ is also a method. Using puts with or without parentheses is the same to Ruby, but the
29+
version without parentheses is a bit easier to read. And it saves you valuable typing time!
3030

31-
> So I guess the conclusion is that you can do whatever you like with parenthesis as long as your
31+
> So I guess the conclusion is that you can do whatever you like with parentheses as long as your
3232
> code reads nicely.
3333
3434
### to (be) or not to (be)

0 commit comments

Comments
 (0)