aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_syntax.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-10-26 13:16:41 +0300
committerBjörn Gustavsson <[email protected]>2010-10-26 16:09:57 +0200
commit44eb815397d0fd34e0a596f32b18ff97358aada1 (patch)
tree00cd3fa0f99337b2c103dd07bf13a2760eb924ef /lib/syntax_tools/src/erl_syntax.erl
parent251a255464b5563b10a1eaae5bc6eca1f5f39d26 (diff)
downloadotp-44eb815397d0fd34e0a596f32b18ff97358aada1.tar.gz
otp-44eb815397d0fd34e0a596f32b18ff97358aada1.tar.bz2
otp-44eb815397d0fd34e0a596f32b18ff97358aada1.zip
syntax_tools: Fix an erroneous type and strengthen some specs
The declaration of the stubDescriptop() type in 'igor' was erroneous, both in the -type and in the published documentation of the module. While fixing this some specs where strengthened and used a remote type to refer to ordsets:ordset(T). Consequently, this patch depends on the ordsets module exporting the ordset/1 type.
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)).