Skip to content

Commit 465b320

Browse files
authored
Merge pull request #2618 from senia-psm/patch-3
Typos in inline.md
2 parents d350348 + 415db28 commit 465b320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/inline.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Note that the arguments corresponding to the parameters `msg` and `op`
5959
of the inline method `log` are defined before the inlined body (which
6060
is in this case simply `op`). By-name parameters of the inlined method
6161
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:
6363

6464
inline def log[T](msg: String)(op: => T): T = ...
6565

@@ -119,7 +119,7 @@ it happens in the fronend instead of in the backend, and it also applies
119119
to method arguments and recursive methods.
120120

121121
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
123123
it in backticks, i.e.
124124

125125
@`inline` def ...

0 commit comments

Comments
 (0)