Skip to content

Commit

Permalink
Merge pull request #2130 from kilink/substring-comment-fix
Browse files Browse the repository at this point in the history
Fix erroneous comment regarding String.substring
  • Loading branch information
xfxyjwf committed Sep 17, 2016
2 parents 3b001ca + 9ac84f8 commit c44ca26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/core/src/main/java/com/google/protobuf/ByteString.java
Expand Up @@ -52,9 +52,9 @@

/**
* Immutable sequence of bytes. Substring is supported by sharing the reference
* to the immutable underlying bytes, as with {@link String}. Concatenation is
* likewise supported without copying (long strings) by building a tree of
* pieces in {@link RopeByteString}.
* to the immutable underlying bytes. Concatenation is likewise supported
* without copying (long strings) by building a tree of pieces in
* {@link RopeByteString}.
* <p>
* Like {@link String}, the contents of a {@link ByteString} can never be
* observed to change, not even in the presence of a data race or incorrect
Expand Down

0 comments on commit c44ca26

Please sign in to comment.