Skip to content

Commit

Permalink
correct field info for record
Browse files Browse the repository at this point in the history
  • Loading branch information
hhkbp2 committed Apr 26, 2015
1 parent 04b6bd7 commit d7a0475
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions doc/standard-library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -643,20 +643,19 @@ in the tuple and its default value. In our example-person record the
result of `field-info/0` is

.. code-block:: clojure
[{name,2,undefined},
{age,3,undefined},
{sex,4,male},
{address,5,"Somewhere in Ireland"},
{city,6,undefined}]
[{name,2,[quote,undefined]},
{age,3,[quote,undefined]},
{sex,4,[quote,male]},
{address,5,"unknown"},
{city,6,[quote,undefined]}]
As you can see it gives you metadata for all the
fields. `field-info/1` returns the same metadata but only for a single
field. So if we called `field-info` with `name` we would get

.. code-block:: clojure
{name,2,undefined}
{name,2,[quote,undefined]}
Future Directions
-----------------
Expand Down

0 comments on commit d7a0475

Please sign in to comment.