mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Bug-fix - False formats as True.
This commit is contained in:
@@ -68,7 +68,7 @@ fn bool_str(vm: &mut VirtualMachine, args: PyFuncArgs) -> Result<PyObjectRef, Py
|
||||
let s = if v {
|
||||
"True".to_string()
|
||||
} else {
|
||||
"True".to_string()
|
||||
"False".to_string()
|
||||
};
|
||||
Ok(vm.new_str(s))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user