From 0fceb8c0d8990d75490e9067a2f69b3c3d1a5b43 Mon Sep 17 00:00:00 2001 From: Armand Foucault Date: Tue, 3 Apr 2018 17:10:44 +0200 Subject: [PATCH] Updated the output of `:ets.new/2` The type of table identifiers changed from integer to reference in OTP20, according to the changelog : http://erlang.org/download/otp_src_20.0.readme Edited the first snippet, replacing the integral output by a reference. --- getting-started/mix-otp/ets.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/mix-otp/ets.markdown b/getting-started/mix-otp/ets.markdown index b5b48a1fb..33dd0d5a8 100644 --- a/getting-started/mix-otp/ets.markdown +++ b/getting-started/mix-otp/ets.markdown @@ -21,7 +21,7 @@ ETS allows us to store any Elixir term in an in-memory table. Working with ETS t ```iex iex> table = :ets.new(:buckets_registry, [:set, :protected]) -8207 +#Reference<0.1885502827.460455937.234656> iex> :ets.insert(table, {"foo", self()}) true iex> :ets.lookup(table, "foo")