File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,6 @@ defmodule Record do
144
144
iex> tuple = {}
145
145
iex> Record.is_record(tuple)
146
146
false
147
- iex> other_term = "not a record"
148
- iex> Record.is_record(other_term)
149
- false
150
147
151
148
"""
152
149
defmacro is_record ( data ) do
@@ -230,10 +227,10 @@ defmodule Record do
230
227
231
228
## Defining extracted records with anonymous functions in the values
232
229
233
- If a record defines an anonymous function in the default values,
234
- an `ArgumentError` will occur if you attempt to create a record with it.
235
- This can happen unintentionally when defining a record after extracting
236
- it from an Erlang library that uses anonymous functions for defaults.
230
+ If a record defines an anonymous function in the default values, an
231
+ `ArgumentError` will be raised. This can happen unintentionally when defining
232
+ a record after extracting it from an Erlang library that uses anonymous
233
+ functions for defaults.
237
234
238
235
Record.defrecord :my_rec, Record.extract(...)
239
236
#=> ** (ArgumentError) invalid value for record field fun_field,
You can’t perform that action at this time.
0 commit comments