Skip to content

Conversation

filosganga
Copy link
Contributor

Fix the Duration examples typo in README.

README.md Outdated
From Java:
```java
import scala.compat.java8.DurationConverters;
import scala.compat.java8.DurationConverters._;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't the Java syntax something else? like * instead of _? and should it be import static perhaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops yes, it should be:

import static scala.compat.java8.DurationConverters.*;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have fixed and rebased.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the java import was correct as is, I have reverted back, sorry.

```scala
import scala.concurrent.duration._
import scala.compat.java8.DurationConverters
import scala.compat.java8.DurationConverters._
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@filosganga filosganga force-pushed the fix/fix-duration-typo branch from 1e2dc8f to a8236f4 Compare March 14, 2019 22:12
@filosganga filosganga force-pushed the fix/fix-duration-typo branch from a8236f4 to 490473c Compare March 14, 2019 22:15
@SethTisue SethTisue merged commit e549a4d into scala:master Apr 23, 2019
@SethTisue
Copy link
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants