Merge pull request #678 from vi/patch-1

Fix minor typo
This commit is contained in:
David Tolnay 2021-01-14 23:16:06 -08:00 committed by GitHub
commit 2029c873c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ where
}
}
/// Chacks whether the SharedPtr does not own an object.
/// Checks whether the SharedPtr does not own an object.
///
/// This is the opposite of [std::shared_ptr\<T\>::operator bool](https://en.cppreference.com/w/cpp/memory/shared_ptr/operator_bool).
pub fn is_null(&self) -> bool {