Skip to content

Bool values print as 0/1 instead of true/false #31

@mjm918

Description

@mjm918

Description

When printing bool values with println or print, they render as 0 and 1 instead of true and false.

Steps to Reproduce

fn main() {
    println("result: {}", true);
    println("result: {}", false);
}

Expected:

result: true
result: false

Actual:

result: 1
result: 0

Impact

Affects any program that prints boolean values, including the linkedlist and binary_tree examples where contains/search functions return bool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions