We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
math.pi // comment
1 parent 682db66 commit 8868696Copy full SHA for 8868696
2 files changed
cmd/tools/vrepl.v
@@ -441,7 +441,7 @@ fn run_repl(workdir string, vrepl_prefix string) int {
441
prompt = '... '
442
}
443
oline := r.get_one_line(prompt) or { break }
444
- line := oline.trim_space()
+ line := oline.all_before('//').trim_space()
445
if line == '' {
446
continue
447
vlib/v/slow_tests/repl/line_comment.repl
@@ -0,0 +1,5 @@
1
+math.pi
2
+math.pi // some comment
3
+===output===
4
+3.141592653589793
5
0 commit comments