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

break until false return false #3541

Closed
ksss opened this issue Mar 24, 2017 · 0 comments
Closed

break until false return false #3541

ksss opened this issue Mar 24, 2017 · 0 comments

Comments

@ksss
Copy link
Contributor

@ksss ksss commented Mar 24, 2017

p (break until false)
# CRuby => nil
# mruby => false
p (break until true)
# CRuby => nil
# mruby => nil
p (break while true)
# CRuby => nil
# mruby => true
p (break while false)
# CRuby => nil
# mruby => nil

ruby/spec: https://github.com/ruby/spec/blob/455f34e3f669e851fbbce80232822c62597b409a/language/until_spec.rb#L149

@matz matz closed this as completed in 666787b Apr 3, 2017
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

No branches or pull requests

1 participant