Skip to content

Commit

Permalink
typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hoytech committed Mar 2, 2021
1 parent bd08913 commit 29bca15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdb++.h
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ namespace lmdb {
*/
template<typename T>
static inline T* ptr_from_sv(std::string_view v) {
if (v.size() != sizeof(T)) error::raise("from_sv", MDB_BAD_VALSIZE);
if (v.size() != sizeof(T)) error::raise("ptr_from_sv", MDB_BAD_VALSIZE);
return reinterpret_cast<T*>(const_cast<char*>(v.data()));
}

Expand Down

0 comments on commit 29bca15

Please sign in to comment.