aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_syntax.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-10-29 11:24:37 +0200
committerBjörn Gustavsson <[email protected]>2010-10-29 11:24:37 +0200
commit26bf9f5871c114c10f0dc1d67b53887ef6b322d1 (patch)
treed1a22dc23caddf2c24b9ac96ce42e2ec07fa82ca /lib/syntax_tools/src/erl_syntax.erl
parent86ce28fb720c1d9205748c8b640906c88a75eac7 (diff)
parent54c54dc6f373ed9610d9a71c78e35babd2dc6508 (diff)
downloadotp-26bf9f5871c114c10f0dc1d67b53887ef6b322d1.tar.gz
otp-26bf9f5871c114c10f0dc1d67b53887ef6b322d1.tar.bz2
otp-26bf9f5871c114c10f0dc1d67b53887ef6b322d1.zip
Merge branch 'ks/strengthen-specs' into dev
* ks/strengthen-specs: lists: Strengthen and modernize specs syntax_tools: Fix an erroneous type and strengthen some specs ordsets: Export ordset/1 type and strengthen specs compiler: Strengthen some specs to shut off dialyzer warnings
Diffstat (limited to 'lib/syntax_tools/src/erl_syntax.erl')
-rw-r--r--lib/syntax_tools/src/erl_syntax.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/syntax_tools/src/erl_syntax.erl b/lib/syntax_tools/src/erl_syntax.erl
index a40bf83c5a..9df5f26454 100644
--- a/lib/syntax_tools/src/erl_syntax.erl
+++ b/lib/syntax_tools/src/erl_syntax.erl
@@ -1818,7 +1818,7 @@ char_value(Node) ->
%%
%% @see char/1
--spec char_literal(syntaxTree()) -> string().
+-spec char_literal(syntaxTree()) -> nonempty_string().
char_literal(Node) ->
io_lib:write_char(char_value(Node)).
@@ -1908,7 +1908,7 @@ string_value(Node) ->
%%
%% @see string/1
--spec string_literal(syntaxTree()) -> string().
+-spec string_literal(syntaxTree()) -> nonempty_string().
string_literal(Node) ->
io_lib:write_string(string_value(Node)).