From 701a916349a48e874e4ea4bdbb65dfe4c19a2cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 18 Jul 2019 10:28:09 +0200 Subject: [PATCH] Remove warning on record suite --- lib/elixir/lib/record.ex | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/elixir/lib/record.ex b/lib/elixir/lib/record.ex index 92a37f2d4b..a1f9d5d27a 100644 --- a/lib/elixir/lib/record.ex +++ b/lib/elixir/lib/record.ex @@ -149,12 +149,11 @@ defmodule Record do ## Examples - iex> record = {User, "john", 27} - iex> Record.is_record(record) - true - iex> tuple = {} - iex> Record.is_record(tuple) - false + Record.is_record({User, "john", 27}) + #=> true + + Record.is_record({}) + #=> false """ defguard is_record(data)