mdbx: fix minor copy-paste errors in descriptions.

This commit is contained in:
Leonid Yuriev 2022-01-24 18:16:09 +03:00
parent e7e82cb289
commit 86d4e37327

30
mdbx.h
View File

@ -4149,11 +4149,9 @@ LIBMDBX_API int mdbx_del(MDBX_txn *txn, MDBX_dbi dbi, const MDBX_val *key,
/** \brief Create a cursor handle but not bind it to transaction nor DBI handle. /** \brief Create a cursor handle but not bind it to transaction nor DBI handle.
* \ingroup c_cursors * \ingroup c_cursors
* *
* An capable of operation cursor is associated with a specific transaction and * A cursor cannot be used when its database handle is closed. Nor when its
* database. A cursor cannot be used when its database handle is closed. Nor * transaction has ended, except with \ref mdbx_cursor_bind() and \ref
* when its transaction has ended, except with \ref mdbx_cursor_bind() and * mdbx_cursor_renew(). Also it can be discarded with \ref mdbx_cursor_close().
* \ref mdbx_cursor_renew().
* Also it can be discarded with \ref mdbx_cursor_close().
* *
* A cursor must be closed explicitly always, before or after its transaction * A cursor must be closed explicitly always, before or after its transaction
* ends. It can be reused with \ref mdbx_cursor_bind() * ends. It can be reused with \ref mdbx_cursor_bind()
@ -4201,10 +4199,9 @@ mdbx_cursor_get_userctx(const MDBX_cursor *cursor);
* Using of the `mdbx_cursor_bind()` is equivalent to calling * Using of the `mdbx_cursor_bind()` is equivalent to calling
* \ref mdbx_cursor_renew() but with specifying an arbitrary dbi handle. * \ref mdbx_cursor_renew() but with specifying an arbitrary dbi handle.
* *
* An capable of operation cursor is associated with a specific transaction and * A cursor may be associated with a new transaction, and referencing a new or
* database. The cursor may be associated with a new transaction, * the same database handle as it was created with. This may be done whether the
* and referencing a new or the same database handle as it was created with. * previous transaction is live or dead.
* This may be done whether the previous transaction is live or dead.
* *
* \note In contrast to LMDB, the MDBX required that any opened cursors can be * \note In contrast to LMDB, the MDBX required that any opened cursors can be
* reused and must be freed explicitly, regardless ones was opened in a * reused and must be freed explicitly, regardless ones was opened in a
@ -4230,11 +4227,9 @@ LIBMDBX_API int mdbx_cursor_bind(MDBX_txn *txn, MDBX_cursor *cursor,
* Using of the `mdbx_cursor_open()` is equivalent to calling * Using of the `mdbx_cursor_open()` is equivalent to calling
* \ref mdbx_cursor_create() and then \ref mdbx_cursor_bind() functions. * \ref mdbx_cursor_create() and then \ref mdbx_cursor_bind() functions.
* *
* An capable of operation cursor is associated with a specific transaction and * A cursor cannot be used when its database handle is closed. Nor when its
* database. A cursor cannot be used when its database handle is closed. Nor * transaction has ended, except with \ref mdbx_cursor_bind() and \ref
* when its transaction has ended, except with \ref mdbx_cursor_bind() and * mdbx_cursor_renew(). Also it can be discarded with \ref mdbx_cursor_close().
* \ref mdbx_cursor_renew().
* Also it can be discarded with \ref mdbx_cursor_close().
* *
* A cursor must be closed explicitly always, before or after its transaction * A cursor must be closed explicitly always, before or after its transaction
* ends. It can be reused with \ref mdbx_cursor_bind() * ends. It can be reused with \ref mdbx_cursor_bind()
@ -4278,10 +4273,9 @@ LIBMDBX_API void mdbx_cursor_close(MDBX_cursor *cursor);
/** \brief Renew a cursor handle. /** \brief Renew a cursor handle.
* \ingroup c_cursors * \ingroup c_cursors
* *
* An capable of operation cursor is associated with a specific transaction and * The cursor may be associated with a new transaction, and referencing a new or
* database. The cursor may be associated with a new transaction, * the same database handle as it was created with. This may be done whether the
* and referencing a new or the same database handle as it was created with. * previous transaction is live or dead.
* This may be done whether the previous transaction is live or dead.
* *
* Using of the `mdbx_cursor_renew()` is equivalent to calling * Using of the `mdbx_cursor_renew()` is equivalent to calling
* \ref mdbx_cursor_bind() with the DBI handle that previously * \ref mdbx_cursor_bind() with the DBI handle that previously