error: 2 positional arguments in format string, but no arguments were given
--> src/main.rs:2:14
|
2 | format!("{:.0$}");
| ^^---^
| |
| this precision flag adds an extra required argument at position 0, which is why there are 2 arguments expected
|
It says there are two arguments expected, but that's not true. This only needs one argument.
It says there are two arguments expected, but that's not true. This only needs one argument.