Fix is_true() / is_false() in Zval (#116)

Looks like a copy/pasta
This commit is contained in:
Joe Hoyle 2021-12-14 08:46:15 +01:00 committed by GitHub
parent 705be68882
commit 910400a1b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ impl Zval {
/// Returns true if the zval is true, false otherwise.
pub fn is_true(&self) -> bool {
self.get_type() == DataType::False
self.get_type() == DataType::True
}
/// Returns true if the zval is false, false otherwise.