Created
March 16, 2012 03:57
-
-
Save db48x/2048452 to your computer and use it in GitHub Desktop.
win
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- for line in str::split_char(p.err, '\n') { | |
- if line == res { | |
- ret true; | |
- } | |
- } | |
- ret false; | |
+ ret iter::any(str::by_lines(p.err)) {|&&line| line == res }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment