Skip to content

Fix the DurationConverters import in README #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2019

Conversation

filosganga
Copy link
Contributor

Fix the Duration examples typo in README.

README.md Outdated

val javaDuration: java.time.Duration = 5.seconds.toJava
val finiteDuration: FiniteDuration = javaDuration.toScala
```

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.

@@ -268,15 +268,15 @@ Example of conversions from the Java type ways:

```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