From 4e0a65b564d9ce015ad375fe3ccee864d6b8a93f Mon Sep 17 00:00:00 2001 From: Boris 'billiob' Faure Date: Mon, 1 Nov 2010 22:17:30 +0100 Subject: doc: "works like" instead of "works as" + missing like --- lib/mnesia/doc/src/Mnesia_chap4.xmlsrc | 4 ++-- lib/mnesia/doc/src/mnesia.xml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/mnesia/doc/src/Mnesia_chap4.xmlsrc b/lib/mnesia/doc/src/Mnesia_chap4.xmlsrc index 7d89c1b0dd..6e8055326b 100644 --- a/lib/mnesia/doc/src/Mnesia_chap4.xmlsrc +++ b/lib/mnesia/doc/src/Mnesia_chap4.xmlsrc @@ -514,13 +514,13 @@ The behavior is undefined if any process perform a write of the table itself. This is an implementation detail, but remember the dirty functions are low level functions. - mnesia:dirty_last(Tab) This function works exactly as + mnesia:dirty_last(Tab) This function works exactly like mnesia:dirty_first/1 but returns the last object in Erlang term order for the ordered_set table type. For all other table types, mnesia:dirty_first/1 and mnesia:dirty_last/1 are synonyms. - mnesia:dirty_prev(Tab, Key) This function works exactly as + mnesia:dirty_prev(Tab, Key) This function works exactly like mnesia:dirty_next/2 but returns the previous object in Erlang term order for the ordered_set table type. For all other table types, mnesia:dirty_next/2 and diff --git a/lib/mnesia/doc/src/mnesia.xml b/lib/mnesia/doc/src/mnesia.xml index 30adc0f071..16e78ea0af 100644 --- a/lib/mnesia/doc/src/mnesia.xml +++ b/lib/mnesia/doc/src/mnesia.xml @@ -1022,7 +1022,7 @@ mnesia:create_table(person, dirty_last(Tab) -> Key | exit({aborted, Reason}) Return the key for the last record in a table. -

This function works exactly +

This function works exactly like mnesia:dirty_first/1 but returns the last object in Erlang term order for the ordered_set table type. For all other table types, mnesia:dirty_first/1 and @@ -1063,7 +1063,7 @@ mnesia:create_table(person, dirty_prev(Tab, Key) -> Key | exit({aborted, Reason}) Return the previous key in a table. -

This function works exactly +

This function works exactly like mnesia:dirty_next/2 but returns the previous object in Erlang term order for the ordered_set table type. For all other table types, mnesia:dirty_next/2 and @@ -1334,7 +1334,7 @@ mnesia:create_table(person, foldr(Function, Acc, Table) -> NewAcc | transaction abort Call Function for each record in Table -

This function works exactly as +

This function works exactly like foldl/3 but iterates the table in the opposite order for the ordered_set table type. For all other table types, foldr/3 and @@ -1512,14 +1512,14 @@ mnesia:create_table(person, Check if code is running in a transaction.

When this function is executed inside a transaction context - it returns true, otherwise false.

+ it returns true, otherwise false.

last(Tab) -> Key | transaction abort Return the key for the last record in a table. -

This function works exactly +

This function works exactly like mnesia:first/1 but returns the last object in Erlang term order for the ordered_set table type. For all other table types, mnesia:first/1 and @@ -1698,7 +1698,7 @@ mnesia:create_table(person, prev(Tab, Key) -> Key | transaction abort Return the previous key in a table. -

This function works exactly +

This function works exactly like mnesia:next/2 but returns the previous object in Erlang term order for the ordered_set table type. For all other table types, mnesia:next/2 and -- cgit v1.2.3