Skip to content

SI-8140 Documentation references java.lang.String directly #4591

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
Jun 30, 2015

Conversation

vsalvis
Copy link
Contributor

@vsalvis vsalvis commented Jun 29, 2015

This is a documentation fix that should make it easier to get to the documentation of java.lang.String. Properly fixing this issue would require a complete redesign of the scaladoc tool to somehow add documentation for external entities.

@scala-jenkins scala-jenkins added this to the 2.11.8 milestone Jun 29, 2015
* Java String (see the documentation corresponding to your Java version, for
* example [[http://docs.oracle.com/javase/7/docs/api/java/lang/String.html]]) or
* are added implicitly through [[scala.collection.immutable.StringOps]].
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

There are a couple of JavaDoc-style comments still in Predef, but it shows Scala pride to use Scala-style, as at the top. It saves vertical space. Also, might as well link to Java 8 doc.

@vsalvis vsalvis force-pushed the vsalvis-stringdoc branch from ce457c7 to d0996ae Compare June 29, 2015 20:07
* This class serves as a wrapper providing `String`s with all the operations
* found in indexed sequences. Where needed, instances of `String` object
* This class serves as a wrapper providing [[scala.Predef.String]]s with all the operations
* found in indexed sequences. Where needed, instances of `String` objects
Copy link
Contributor

Choose a reason for hiding this comment

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

The word objects doesn't actually belong. Even "instances of String" is possibly redundant. "Strings are implicitly converted into instances of this class."

@vsalvis vsalvis force-pushed the vsalvis-stringdoc branch from d0996ae to b1c7d21 Compare June 29, 2015 20:11
@vsalvis
Copy link
Contributor Author

vsalvis commented Jun 29, 2015

Thanks @som-snytt, fixed your comments.

SethTisue added a commit that referenced this pull request Jun 30, 2015
SI-8140 Documentation references java.lang.String directly
@SethTisue SethTisue merged commit 6ca8847 into scala:2.11.x Jun 30, 2015
@SethTisue
Copy link
Member

LGTM. Thank you for the contribution!

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.

4 participants