Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
leonardinius opened this issue Mar 1, 2015 · 2 comments
Closed

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

leonardinius opened this issue Mar 1, 2015 · 2 comments

Comments

@leonardinius
Copy link

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.

@Kimundi Kimundi added the A-docs label Mar 1, 2015
@leonardinius leonardinius changed the title Confussion regarding fmt.rs {:.*} syntax Confusion regarding fmt.rs {:.*} syntax Mar 1, 2015
@theemathas
Copy link
Contributor

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

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

@theemathas
Copy link
Contributor

Related to #22646

steveklabnik added a commit to steveklabnik/rust that referenced this issue Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants