diff options
author | Cian Synnott <[email protected]> | 2015-01-18 23:37:05 +0100 |
---|---|---|
committer | Cian Synnott <[email protected]> | 2015-01-18 23:37:05 +0100 |
commit | eb87eaca8c4ec7beab490cb8dcca5941408e8662 (patch) | |
tree | 6baabdfdce17ef4e7491d0a1c0bbb643d1ae82ca /lib | |
parent | 50a92094372b45c9864afe3418b79605da549122 (diff) | |
download | otp-eb87eaca8c4ec7beab490cb8dcca5941408e8662.tar.gz otp-eb87eaca8c4ec7beab490cb8dcca5941408e8662.tar.bz2 otp-eb87eaca8c4ec7beab490cb8dcca5941408e8662.zip |
Fix index for #person.address in create_table/2
{index, [2]} refers to #person.name rather than #person.address, which
caused a little confusion in #erlang today.
{index, [4]} is the correct "hard coded" field for #person.address.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mnesia/doc/src/mnesia.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnesia/doc/src/mnesia.xml b/lib/mnesia/doc/src/mnesia.xml index c23c2cb226..b2de8b6946 100644 --- a/lib/mnesia/doc/src/mnesia.xml +++ b/lib/mnesia/doc/src/mnesia.xml @@ -863,7 +863,7 @@ mnesia:create_table(person, {attributes, record_info(fields,person)}]). </code> <p>The specification of <c>index</c> and <c>attributes</c> may be - hard coded as <c>{index, [2]}</c> and + hard coded as <c>{index, [4]}</c> and <c>{attributes, [name, age, address, salary, children]}</c> respectively. </p> |