From 0401ae42cf3cda9640953c8c23cdb027f29372a6 Mon Sep 17 00:00:00 2001 From: lharc Date: Tue, 1 Jul 2014 16:06:05 +0200 Subject: documentation: maps:values() returns list of keys probably a copy&paste error from maps:keys() --- lib/stdlib/src/maps.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/stdlib') diff --git a/lib/stdlib/src/maps.erl b/lib/stdlib/src/maps.erl index 4ef1638e6d..3f019aa35a 100644 --- a/lib/stdlib/src/maps.erl +++ b/lib/stdlib/src/maps.erl @@ -133,10 +133,10 @@ to_list(_) -> erlang:nif_error(undef). update(_,_,_) -> erlang:nif_error(undef). --spec values(Map) -> Keys when +-spec values(Map) -> Values when Map :: map(), - Keys :: [Key], - Key :: term(). + Values :: [Value], + Value :: term(). values(_) -> erlang:nif_error(undef). -- cgit v1.2.3