itwanger / itwanger/toBeBetterJavaer
Java进阶之路P159页字符串的substring注释结果有误
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
原:
String str = "Hello, world!";
String prefix = str.substring(0, 5); // ᨀ 取前5个字符,即 "Hello,"
改:
String str = "Hello, world!";
String prefix = str.substring(0, 5); // ᨀ 取前5个字符,即 "Hello"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the Java advanced learning guide and locate page 159, where the substring example is shown. Verify that substring(0, 5) returns "Hello" rather than "Hello," and correct the Chinese comment. Done means the page displays the corrected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100