Skip to content

Commit

Permalink
fix incorrectly renderd code block. (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: guixinliu <[email protected]>
  • Loading branch information
guixinliu and guixinliu authored Nov 4, 2022
1 parent db429e3 commit 013a00e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contents/why_julia.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ scob(s)
例如,函数如下:


```jl
```
function trouble(A::Fox, B::Chicken, C::Chicken)
return trouble(A, B) || trouble(B, C) || trouble(C, A)
end
```

根据上下文,Julia 会将其优化为:

```jl
```
function trouble(A::Fox, B::Chicken, C::Chicken)
return true || false || true
end
Expand All @@ -296,7 +296,7 @@ end
`trouble(C1::Chicken, C2::Chicken)` 同理。
然后,编译器进一步优化:

```jl
```
function trouble(A::Fox, B::Chicken, C::Chicken)
return true
end
Expand Down

0 comments on commit 013a00e

Please sign in to comment.