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

examples: fix (2022-10) #12665

Merged
merged 1 commit into from
Oct 27, 2022
Merged

Conversation

maiha
Copy link
Contributor

@maiha maiha commented Oct 26, 2022

Let's catch up examples before Crystal 1.7 😃

Best regards,

@@ -298,7 +298,7 @@ end
# sprintf "%b", -123 # => "-1111011"
# sprintf "%#b", 0 # => "0"
# sprintf "% b", 123 # => " 1111011"
# sprintf "%+ b", 123 # => "+ 1111011"
# sprintf "%+ b", 123 # => "+1111011"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have correct spec of printf, but many implementations say so.

[crystal-1.6.1-dev]
sprintf "%+ b", 123 # => "+1111011"

[ruby-3.2.0-dev]
sprintf "%+ b", 123 # => "+1111011"

[go-1.1.9]
fmt.Sprintf("%+ b", 123) // => "+1111011"

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:docs topic:stdlib labels Oct 26, 2022
Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thank you @maiha 🙏

@straight-shoota straight-shoota added this to the 1.7.0 milestone Oct 26, 2022
@straight-shoota straight-shoota merged commit ccb0060 into crystal-lang:master Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:docs topic:stdlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants