Merge pull request #30747 from george-mengelberg/patch-1

Description of '-' symbol as used in format()
This commit is contained in:
Alisdair McDiarmid 2022-03-28 12:58:12 -04:00 committed by GitHub
commit 120d096615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ to set additional flags:
| ------ | -------------------------------------------------------------- |
| space | Leave a space where the sign would be if a number is positive. |
| `+` | Show the sign of a number even if it is positive. |
| `-` | Pad the width with spaces on the left rather than the right. |
| `-` | Pad the width with spaces on the right rather than the left. |
| `0` | Pad the width with leading zeros rather than spaces. |
By default, `%` sequences consume successive arguments starting with the first.