Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
domluna committed Sep 26, 2024
1 parent 6ed6a89 commit 8741467
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 286 deletions.
33 changes: 18 additions & 15 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,28 +527,31 @@ end
You can convert short circuit expressions to the equivalent if expression.

```julia
b0 && foo()
function foo(a, b)
a || return "bar"

b1 || bar()
```

respectively become
"hello"

```julia
if b0
foo()
else
false
b && return "ooo"
end

if !b1
bar()
else
true
BECOMES

function foo(a, b)
if !(a)
return "bar"
end

"hello"

if b
return "ooo"
else
false
end
end
```


### `disallow_single_arg_nesting`

Prevents the nesting of a single argument `arg` in parenthesis, brackets, and curly braces.
Expand Down
Loading

0 comments on commit 8741467

Please sign in to comment.