From 61b173e47e4157e784f32fc46a9867fbadc9a53a Mon Sep 17 00:00:00 2001 From: Boris 'billiob' Faure Date: Mon, 1 Nov 2010 22:11:08 +0100 Subject: fix typo in mnesia doc --- lib/mnesia/doc/src/Mnesia_chap2.xmlsrc | 6 ++---- lib/mnesia/doc/src/Mnesia_chap3.xml | 2 +- lib/mnesia/doc/src/mnesia.xml | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/mnesia/doc') diff --git a/lib/mnesia/doc/src/Mnesia_chap2.xmlsrc b/lib/mnesia/doc/src/Mnesia_chap2.xmlsrc index 0714c7b645..f263ea4ed2 100644 --- a/lib/mnesia/doc/src/Mnesia_chap2.xmlsrc +++ b/lib/mnesia/doc/src/Mnesia_chap2.xmlsrc @@ -235,9 +235,7 @@ Starting Mnesia. -

Continuing the dialogue with the Erlang shell will produce the following - the following: -

+

Continuing the dialogue with the Erlang shell will produce the following:

 company:init().
         {atomic,ok}
@@ -418,7 +416,7 @@ In_proj
         interchangeably throughout this book. 
         

A Mnesia table is populated by Mnesia records. For example, - the tuple {boss, klacke, bjarne} is an record. The + the tuple {boss, klacke, bjarne} is a record. The second element in this tuple is the key. In order to uniquely identify a table row both the key and the table name is needed. The term object identifier, diff --git a/lib/mnesia/doc/src/Mnesia_chap3.xml b/lib/mnesia/doc/src/Mnesia_chap3.xml index 9a382bcb5a..c3e584123e 100644 --- a/lib/mnesia/doc/src/Mnesia_chap3.xml +++ b/lib/mnesia/doc/src/Mnesia_chap3.xml @@ -132,7 +132,7 @@ function changes the format on all records in table Tab. It applies the argument Fun to all records in the table. Fun shall be a function which - takes an record of the old type, and returns the record of the new + takes a record of the old type, and returns the record of the new type. The table key may not be changed.

-record(old, {key, val}). diff --git a/lib/mnesia/doc/src/mnesia.xml b/lib/mnesia/doc/src/mnesia.xml index 5d3bcf830e..74486b32bd 100644 --- a/lib/mnesia/doc/src/mnesia.xml +++ b/lib/mnesia/doc/src/mnesia.xml @@ -2835,7 +2835,7 @@ raise(Name, Amount) -> write(Tab, Record, LockKind) -> transaction abort | ok - Write an record into the database. + Write a record into the database.

Writes the record Record to the table Tab.

-- cgit v1.2.3