aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_prettypr.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-05-10 04:35:59 +0000
committerErlang/OTP <[email protected]>2010-05-10 04:35:59 +0000
commit94bf1359fdd8b38c8b9c3b7455865025b4e0d7da (patch)
treedad2020d9a7ac65802cfd0903d67ba10f4158f14 /lib/syntax_tools/src/erl_prettypr.erl
parent7fd4d8c8861ae3cf08a00610c71624aaf7fc16d7 (diff)
parentccf1c5d20bcf76139d4f08a3da0f9954636fea10 (diff)
downloadotp-94bf1359fdd8b38c8b9c3b7455865025b4e0d7da.tar.gz
otp-94bf1359fdd8b38c8b9c3b7455865025b4e0d7da.tar.bz2
otp-94bf1359fdd8b38c8b9c3b7455865025b4e0d7da.zip
Merge branch 'ks/syntax_tools' into dev
* ks/syntax_tools: Fix an erroneous spec
Diffstat (limited to 'lib/syntax_tools/src/erl_prettypr.erl')
-rw-r--r--lib/syntax_tools/src/erl_prettypr.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/syntax_tools/src/erl_prettypr.erl b/lib/syntax_tools/src/erl_prettypr.erl
index 606441bcf1..c2c72d1ed2 100644
--- a/lib/syntax_tools/src/erl_prettypr.erl
+++ b/lib/syntax_tools/src/erl_prettypr.erl
@@ -384,7 +384,7 @@ lay_postcomments(Cs, D) ->
beside(D, floating(break(stack_comments(Cs, true)), 1, 0)).
%% Format (including padding, if `Pad' is `true', otherwise not)
-%% and stack the listed comments above each other,
+%% and stack the listed comments above each other.
stack_comments([C | Cs], Pad) ->
D = stack_comment_lines(erl_syntax:comment_text(C)),
@@ -405,9 +405,7 @@ stack_comments([C | Cs], Pad) ->
D1; % done
_ ->
above(D1, stack_comments(Cs, Pad))
- end;
-stack_comments([], _) ->
- empty().
+ end.
%% Stack lines of text above each other and prefix each string in
%% the list with a single `%' character.