File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Note that the arguments corresponding to the parameters `msg` and `op`
59
59
of the inline method ` log ` are defined before the inlined body (which
60
60
is in this case simply ` op ` ). By-name parameters of the inlined method
61
61
correspond to ` def ` bindings whereas by-value parameters correspond to
62
- ` val ` bindings. Do if ` log ` was defined like this:
62
+ ` val ` bindings. So if ` log ` was defined like this:
63
63
64
64
inline def log[T](msg: String)(op: => T): T = ...
65
65
@@ -119,7 +119,7 @@ it happens in the fronend instead of in the backend, and it also applies
119
119
to method arguments and recursive methods.
120
120
121
121
Since ` inline ` is now a keyword, it would be a syntax error to write
122
- ` @inline ` . Hwoever , one can still refer to the annotation by putting
122
+ ` @inline ` . However , one can still refer to the annotation by putting
123
123
it in backticks, i.e.
124
124
125
125
@`inline` def ...
You can’t perform that action at this time.
0 commit comments