Skip to content

[fmt] left padding of numbers should default to space instead of 0 #3112

@cridlig

Description

@cridlig

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System & Odin Version: MacOS Sonoma on ARM64
  • Please paste odin report output: dev-2024-01:5961d4b3

Expected Behavior

fmt.printf("%4d", 92) should print the integer 92 left padded with two spaces

Current Behavior

What is the current behavior? fmt.printf("%4d", 92) prints 0092

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions