Skip to content

Commit fc572f9

Browse files
authored
Fix code block indentation (#326)
The code block has to be indented at the same level as the list elements, otherwise Documenter won't parse it correctly.
1 parent 3fe86d3 commit fc572f9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/src/design.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -327,16 +327,16 @@ parsing `key=val` pairs inside parentheses.
327327

328328
* `let` bindings might be stored in a block, or they might not be, depending on
329329
special cases:
330-
```
331-
# Special cases not in a block
332-
let x=1 ; end ==> (let (= x 1) (block))
333-
let x::1 ; end ==> (let (:: x 1) (block))
334-
let x ; end ==> (let x (block))
335-
336-
# In a block
337-
let x=1,y=2 ; end ==> (let (block (= x 1) (= y 2) (block)))
338-
let x+=1 ; end ==> (let (block (+= x 1)) (block))
339-
```
330+
```julia
331+
# Special cases not in a block
332+
let x=1 ; end # ==> (let (= x 1) (block))
333+
let x::1 ; end # ==> (let (:: x 1) (block))
334+
let x ; end # ==> (let x (block))
335+
336+
# In a block
337+
let x=1,y=2 ; end # ==> (let (block (= x 1) (= y 2) (block)))
338+
let x+=1 ; end # ==> (let (block (+= x 1)) (block))
339+
```
340340

341341
* The `elseif` condition is always in a block but not the `if` condition.
342342
Presumably because of the need to add a line number node in the flisp parser

0 commit comments

Comments
 (0)