Skip to content

Commit

Permalink
[style] Refine line break discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jan 16, 2019
1 parent f4aee0f commit 67cfb56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/src/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,21 @@ function my_very_long_function_name(
# First line of the function begins here.
end

# Align arguments vertically.
function my_very_long_function_name(with_lots_of_long_arguments_1,
and_another_long_one)
and_another_long_one)
# First line of the function begins here.
end
```

Bad:
```julia
# Line exceeds line length.
function my_very_long_function_name(with_lots_of_long_arguments_1, and_another_long_one)
# First line of the function begins here.
end

# When wrapping with a hanging indent, don't leave things on the first line.
function my_very_long_function_name(with_lots_of_long_arguments_1,
and_another_long_one)
# First line of the function begins here.
Expand Down

0 comments on commit 67cfb56

Please sign in to comment.