Skip to content

Commit 9a56cce

Browse files
authored
Fix typos in Remote Control Competition (exercism#2045)
1 parent c464543 commit 9a56cce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exercises/concept/remote-control-competition/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exp.getDistanceTravelled();
3535

3636
Please implement the `Comparable<T>` interface in the `ProductionRemoteControlCar` class. The default sort order for cars should be ascending order of victories.
3737

38-
Implement the static `TestTrack.getRankedCars()` to return the cars passed is sorted in ascending order of number of victories.
38+
Implement the static `TestTrack.getRankedCars()` to return the cars passed in, sorted in ascending order of number of victories.
3939

4040
```java
4141
ProductionRemoteControlCar prc1 = new ProductionRemoteControlCar();

exercises/concept/remote-control-competition/.docs/introduction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ public interface Language {
1010
String speak();
1111
}
1212

13-
public class ItalianTaveller implements Language, Cloneable {
13+
public class ItalianTraveller implements Language, Cloneable {
1414

1515
// from Language interface
1616
public String getLanguageName() {
17-
return "Italiano";
17+
return "Italiano";
1818
}
1919

2020
// from Language interface
@@ -23,7 +23,7 @@ public class ItalianTaveller implements Language, Cloneable {
2323
}
2424

2525
// from Cloneable interface
26-
public Object Clone() {
26+
public Object clone() {
2727
ItalianTaveller it = new ItalianTaveller();
2828
return it;
2929
}
@@ -34,4 +34,4 @@ All operations defined by the interface must be implemented by the implementing
3434

3535
Interfaces usually contain instance methods.
3636

37-
An example of an interface found in the Java Class Library, apart from `Clonable` illustrated above, is `Comparable<T>`. The `Comparable<T>` interface can be implemented where a default generic sort order in collections is required.
37+
An example of an interface found in the Java Class Library, apart from `Cloneable` illustrated above, is `Comparable<T>`. The `Comparable<T>` interface can be implemented where a default generic sort order in collections is required.

0 commit comments

Comments
 (0)