Skip to content
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

Fix minor documentation and comment typos #2061

Merged
merged 5 commits into from Oct 13, 2022

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Oct 13, 2022

Very minor points. I'm mostly committing so my IDE will show fewer warnings.

@@ -268,7 +268,7 @@ internal open class StreamingJsonDecoder(

override fun decodeBoolean(): Boolean {
/*
* We prohibit non true/false boolean literals at all as it is considered way too error-prone,
* We prohibit non-true/false boolean literals at all as it is considered way too error-prone,
Copy link
Member

Choose a reason for hiding this comment

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

Here it would actually change the meaning. The original comment "non true/false" means "any literal that is not equal to 'true' or 'false'", while changed versions read as "We prohibit non-true OR false boolean literals".

You can rephrase this to "We prohibit any boolean literal that is not strictly 'true' or 'false'"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good spot, thanks. Your rephrasing is much more clear.

@sandwwraith sandwwraith merged commit 0a1b6d8 into Kotlin:dev Oct 13, 2022
@aSemy aSemy deleted the fix/minor_doc_typos branch October 13, 2022 15:32
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.

None yet

2 participants