diff options
| author | Björn-Egil Dahlberg <[email protected]> | 2015-03-19 15:01:18 +0100 | 
|---|---|---|
| committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-19 15:01:18 +0100 | 
| commit | c283f8035e1ac18a6d150a2013c7f929cc32bffc (patch) | |
| tree | 021a83e58e17c714f694829027d86abb275f7d4b /lib/stdlib/src/io_lib.erl | |
| parent | 3c6a1954670c5632216cd46628ee7260a27a51fb (diff) | |
| parent | a8599e3fbeb4628268f8761cbb1102d24d552133 (diff) | |
| download | otp-c283f8035e1ac18a6d150a2013c7f929cc32bffc.tar.gz otp-c283f8035e1ac18a6d150a2013c7f929cc32bffc.tar.bz2 otp-c283f8035e1ac18a6d150a2013c7f929cc32bffc.zip | |
Merge branch 'egil/maps/hamt/OTP-12585'
* egil/maps/hamt/OTP-12585: (113 commits)
  erts: Fix bug in ESTACK and WSTACK
  kernel: Add spec for erts_debug:map_info/1
  mnesia: Update mnesia tests to reflect new ETS hash
  erts: Ensure maps uses _rel functions in halfword
  erts: Do not treat errors as fatal in erl_printf_term
  erts: Update preloaded erts_internal.beam
  erts: Add map decomposition wrappers
  erts: Ensure halfword has correct temp-heap for maps
  hipe: Handle separate hashmap tag correctly
  erts: Fix map bug in dec_term for 32-bit debug VM
  stdlib: Update qlc tests to reflect new ETS hash
  stdlib: Remove obsolete hashmap references in io_lib
  erts: Enhance maps ordering tests
  hipe: Fix maps sort order testcase
  erts: Remove unused variable in crashdump creation
  erts: Fix typo in copy_struct for halfword emulator
  erts: Restrict GCC intrinsics by compiler version
  erts: Fix windows bug in hashmap_info
  erts: Fix typo in make_hash2 for 32-bit arch
  Fix beam_load assert
  ...
Conflicts:
	erts/emulator/beam/bif.tab
Diffstat (limited to 'lib/stdlib/src/io_lib.erl')
| -rw-r--r-- | lib/stdlib/src/io_lib.erl | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lib/stdlib/src/io_lib.erl b/lib/stdlib/src/io_lib.erl index e90cda0533..3378d668a5 100644 --- a/lib/stdlib/src/io_lib.erl +++ b/lib/stdlib/src/io_lib.erl @@ -287,6 +287,8 @@ write([H|T], D) ->      end;  write(F, _D) when is_function(F) ->      erlang:fun_to_list(F); +write(Term, D) when is_map(Term) -> +    write_map(Term, D);  write(T, D) when is_tuple(T) ->      if  	D =:= 1 -> "{...}"; @@ -295,9 +297,7 @@ write(T, D) when is_tuple(T) ->  	     [write(element(1, T), D-1)|                write_tail(tl(tuple_to_list(T)), D-1, $,)],  	     $}] -    end; -%write(Term, D)  when is_map(Term) -> write_map(Term, D); -write(Term, D) -> write_map(Term, D). +    end.  %% write_tail(List, Depth, CharacterBeforeDots)  %%  Test the terminating case first as this looks better with depth. | 
