Fix typos and minor errors in comments

This commit is contained in:
Thomas Goyne 2016-01-20 06:43:46 -08:00
parent db7d6fa2a8
commit c46a2a34de
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class Realm;
namespace _impl {
// CachedRealm stores a weak reference to a Realm instance, along with all of
// CachedRealmBase stores a weak reference to a Realm instance, along with all of
// the information about a Realm that needs to be accessed from other threads.
// This is needed to avoid forming strong references to the Realm instances on
// other threads, which can produce deadlocks when the last strong reference to

View File

@ -376,8 +376,8 @@ AsyncQueryCancelationToken Results::async(std::function<void (std::exception_ptr
void Results::AsyncFriend::set_table_view(Results& results, realm::TableView &&tv)
{
// If the previous TableView was never actually used, then generating new
// ones until the user actually uses the Results object again
// If the previous TableView was never actually used, then stop generating
// new ones until the user actually uses the Results object again
if (results.m_mode == Mode::TableView) {
results.m_wants_background_updates = results.m_has_used_table_view;
}