From 4580d7242ad2c1c56582c6ee25e2227bfc6166e7 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 1 Mar 2022 00:42:50 +0100 Subject: [PATCH] Fix typos --- lmdb-safe.cc | 2 +- lmdb-typed.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lmdb-safe.cc b/lmdb-safe.cc index 0c181e5..9e71a70 100644 --- a/lmdb-safe.cc +++ b/lmdb-safe.cc @@ -283,7 +283,7 @@ void MDBROTransactionImpl::commit() if (d_txn) { d_parent->decROTX(); if (const auto rc = mdb_txn_commit(d_txn)) { // this appears to work better than abort for r/o database opening - throw LMDBError("Error comitting transaction: ", rc); + throw LMDBError("Error committing transaction: ", rc); } d_txn = nullptr; } diff --git a/lmdb-typed.hh b/lmdb-typed.hh index 562455c..3f596be 100644 --- a/lmdb-typed.hh +++ b/lmdb-typed.hh @@ -224,7 +224,7 @@ template struct index_on_function : LMD * * Open issues: * - Perhaps use the separate index concept from multi_index. - * - Perhaps get eiter to be of same type so for(auto& a : x) works + * - Perhaps get either to be of same type so for(auto& a : x) works * make it more value "like" with unique_ptr. */ template class LMDB_SAFE_EXPORT TypedDBI {