Skip to content

Commit 8d7e097

Browse files
committed
Fix wrong quotes in the Expressions chapter
An inline code snippet was using triple quotes instead of single ones, breaking syntax highlight in vim.
1 parent b3bedc0 commit 8d7e097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ Significantly, lambda expressions _capture their environment_, which regular
564564
[function definitions](items.html#functions) do not. The exact type of capture
565565
depends on the [function type](types.html#function-types) inferred for the
566566
lambda expression. In the simplest and least-expensive form (analogous to a
567-
```|| { }``` expression), the lambda expression captures its environment by
567+
`|| { }` expression), the lambda expression captures its environment by
568568
reference, effectively borrowing pointers to all outer variables mentioned
569569
inside the function. Alternately, the compiler may infer that a lambda
570570
expression should copy or move values (depending on their type) from the

0 commit comments

Comments
 (0)