1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: rewrite string.split_nth and fix some bugs (#7189)

This commit is contained in:
Andréas Livet
2020-12-08 09:51:47 +01:00
committed by GitHub
parent 8931d3d39c
commit a2ec52b8c4
3 changed files with 22 additions and 25 deletions

View File

@ -301,7 +301,7 @@ fn run_repl(workdir string, vrepl_prefix string) {
}
fn print_output(s os.Result) {
lines := s.output.trim_right('\n\r').split('\n')
lines := s.output.trim_right('\n\r').split_into_lines()
for line in lines {
if line.contains('.vrepl_temp.v:') {
// Hide the temporary file name