Skip to content

Non-async impl of fmt::Write for terminal mode incorrectly only displays final character of string #226

@JarrettBillingsley

Description

@JarrettBillingsley

s.chars().map(move |c| self.print_char(c)).next_back();

This line of code uses .next_back(), which only prints the final character of the string.

Earlier revisions apparently used .last() which would evaluate the whole iterator. (I can confirm that changing it back to .last() works.)

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