rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

doc: "0" listed as possible value for "positive integer" values

Open ensc opened this issue 6 months ago • 1 comments

Documentation mentions at

  • https://rust-lang.github.io/rustfmt/?version=v1.8.0&search=#inline_attribute_width
  • https://rust-lang.github.io/rustfmt/?version=v1.8.0&search=#enum_discrim_align_threshold
Default value: 0
Possible values: any positive integer

This is misleading/contradicting because 0 is not a positive integer.

ensc avatar May 24 '25 16:05 ensc

Please open a PR for this if you have any suggestions for clarifying the docs.

ytmimi avatar May 31 '25 15:05 ytmimi