Skip to content

docs: fix stripTrailing() result in the Java 11 String example - #2943

Open
NotAFlightRisk wants to merge 1 commit into
Snailclimb:mainfrom
NotAFlightRisk:fix/java11-striptrailing
Open

NotAFlightRisk wants to merge 1 commit into
Snailclimb:mainfrom
NotAFlightRisk:fix/java11-striptrailing

Conversation

@NotAFlightRisk

Copy link
Copy Markdown

stripTrailing() only trims the end, so " Java ".stripTrailing() gives " Java" rather than the "Java" the comment says. As it stands it reads the same as strip() just above it, which is a bit confusing when the block's there to show how the three differ.

This branch has not been deployed

No deployments
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.

1 participant