Skip to content

Confusion regarding fmt.rs {:.*} syntax #22927

Closed

Description

@leonardinius

See IRC discussion starting from https://botbot.me/mozilla/rust/2015-03-01/?msg=33094439&page=16


tl;dr;

It might be that some kind of explanation similar to https://botbot.me/mozilla/rust/msg/33094764/ is required; as well as at least few examples, such as https://botbot.me/mozilla/rust/msg/33094776/, as well as this https://botbot.me/mozilla/rust/msg/33094947/

I 'm afraid I didn't completely grok examples featuring $ from the IRC conversation, but I think they should be explained as well.

Activity

  1. changed the title [-]Confussion regarding fmt.rs `{:.*}` syntax[/-] [+]Confusion regarding fmt.rs `{:.*}` syntax[/+] on Mar 1, 2015
  2. theemathas commented on Mar 1, 2015

    @theemathas
    Contributor

    Another documentation problem in fmt: How is width defined for unicode strings?

    Current behavior: println!("a{:5}b", "n͈̰̎") outputs an͈̰̎ b

  3. theemathas commented on Mar 4, 2015

    @theemathas
    Contributor

    Related to #22646

  4. added 2 commits that reference this issue on Mar 18, 2015
    db860c7
    8a8b2ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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