diff options
author | Hans Bolinder <[email protected]> | 2016-05-19 08:59:45 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2016-06-09 11:28:00 +0200 |
commit | fb49e45402c0370c030ce3c128b08bccf960bf44 (patch) | |
tree | f287e8eb12c276f2412020ee7420f9c55cb96bc6 /lib/stdlib/src/qlc.erl | |
parent | 38cdb3b5131257a8cc76b8f64e32b8ecf722bdb4 (diff) | |
download | otp-fb49e45402c0370c030ce3c128b08bccf960bf44.tar.gz otp-fb49e45402c0370c030ce3c128b08bccf960bf44.tar.bz2 otp-fb49e45402c0370c030ce3c128b08bccf960bf44.zip |
stdlib: Correct types and specs
Diffstat (limited to 'lib/stdlib/src/qlc.erl')
-rw-r--r-- | lib/stdlib/src/qlc.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/stdlib/src/qlc.erl b/lib/stdlib/src/qlc.erl index b396ba7057..f3665824f2 100644 --- a/lib/stdlib/src/qlc.erl +++ b/lib/stdlib/src/qlc.erl @@ -734,10 +734,11 @@ table(TraverseFun, Options) when is_function(TraverseFun) -> table(T1, T2) -> erlang:error(badarg, [T1, T2]). --spec(transform_from_evaluator(LC, Bs) -> Expr when +-spec(transform_from_evaluator(LC, Bs) -> Return when LC :: abstract_expr(), - Expr :: abstract_expr(), - Bs :: erl_eval:binding_struct()). + Bs :: erl_eval:binding_struct(), + Return :: {ok, abstract_expr()} + | {not_ok, {error, module(), Reason :: term()}}). transform_from_evaluator(LC, Bs0) -> qlc_pt:transform_from_evaluator(LC, Bs0). |