mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Compute annotation instead of NoTypeAnn in docs code
This commit is contained in:
parent
81bbf57d4c
commit
d7b347bd1d
2 changed files with 5 additions and 4 deletions
|
@ -624,7 +624,7 @@ fn should_be_multiline(type_ann: &TypeAnnotation) -> bool {
|
|||
is_multiline
|
||||
}
|
||||
TypeAnnotation::Function { args, output } => {
|
||||
let mut is_multiline = should_be_multiline(output) || args.len() > 1;
|
||||
let mut is_multiline = should_be_multiline(output) || args.len() > 2;
|
||||
|
||||
for arg in args {
|
||||
if is_multiline {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue