Skip to content

Commit 910400a

Browse files
authored
Fix is_true() / is_false() in Zval (#116)
Looks like a copy/pasta
1 parent 705be68 commit 910400a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/zval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl Zval {
259259

260260
/// Returns true if the zval is true, false otherwise.
261261
pub fn is_true(&self) -> bool {
262-
self.get_type() == DataType::False
262+
self.get_type() == DataType::True
263263
}
264264

265265
/// Returns true if the zval is false, false otherwise.

0 commit comments

Comments
 (0)