Skip to content

Commit 0ce1282

Browse files
authored
Merge pull request #3177 from parambirs/patch-1
Fix a couple of typos in scala-for-java-programmers.md
2 parents 64e112f + d021c45 commit 0ce1282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_overviews/tutorials/scala-for-java-programmers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ to omit types, and when to specify them explicitly.
506506
### Methods without arguments
507507

508508
A small problem of the methods `re` and `im` is that, in
509-
order to call them, one has to put an empty pair of parenthesis after
509+
order to call them, one has to put an empty pair of parentheses after
510510
their name, as the following example shows:
511511

512512
{% tabs method-call-with-args-demo class=tabs-scala-version %}
@@ -811,7 +811,7 @@ code which typically makes use of these named parts.
811811

812812
A programmer familiar with the object-oriented paradigm
813813
might wonder why define a single function for `eval` outside
814-
the scope of `Tree`, and not make `eval` and abstract method in
814+
the scope of `Tree`, and not make `eval` an abstract method in
815815
`Tree`, providing overrides in each subclass of `Tree`.
816816

817817
We could have done it actually, it is a choice to make, which has

0 commit comments

Comments
 (0)