Skip to content

Commit cfc7aa7

Browse files
author
Som Snytt
committed
Tweak test option header advice
1 parent 8c1bf9b commit cfc7aa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ scala -cp out Test
127127
```
128128

129129
**Flags**
130-
- To specify compiler flags such as `-Werror -Xlint`, you can add a comment at the top of your source file of the form: `// scalac: -Werror -Xlint`.
130+
- To specify compiler flags such as `-Werror -Xlint`, you can add a comment at the top of your source file of the form:
131+
`//> using options -Werror -Xlint`
131132
- Similarly, a `// javac: <flags>` comment in a Java source file passes flags to the Java compiler.
132133
- A `// filter: <regex>` comment eliminates output lines that match the filter before comparing to the `.check` file.
133134
- A `// java: <flags>` comment makes a `run` test execute in a separate JVM and passes the additional flags to the `java` command.

0 commit comments

Comments
 (0)