Skip to content

Commit e16706c

Browse files
authored
Merge pull request scala/scala#10636 from som-snytt/tweak/7349-opt-followup
Tweak inline doc
2 parents 152efb0 + 8a0cbcd commit e16706c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

library/src/scala/inline.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ package scala
1616
* An annotation for methods that the optimizer should inline.
1717
*
1818
* Note that by default, the Scala optimizer is disabled and no callsites are inlined. See
19-
* `-opt:help` for information on how to enable the optimizer and inliner.
19+
* `-opt:help` and [[https://docs.scala-lang.org/overviews/compiler-options/optimizer.html the overview document]]
20+
* for information on how to enable the optimizer and inliner.
2021
*
2122
* When inlining is enabled, the inliner will always try to inline methods or callsites annotated
22-
* `@inline` (under the condition that inlining from the defining class is allowed, see
23-
* `-opt-inline-from:help`). If inlining is not possible, for example because the method is not
24-
* final, an optimizer warning will be issued. See `-opt-warnings:help` for details.
23+
* `@inline` (under the condition that inlining from the defining class is allowed).
24+
* If inlining is not possible, for example because the method is not
25+
* final, an optimizer warning will be issued. See `-Wopt:help` for details.
2526
*
2627
* Examples:
2728
*

0 commit comments

Comments
 (0)