File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ See [`set_hook()`](crate::set_hook) for more details on customizing your global
2323printer.
2424
2525The width with which reports get printed depends on the configured width value, but can also get overridden per call
26- using the [Rust fmt width ](https://doc.rust-lang.org/std/fmt/#width ) specifier.
26+ using the [Rust fmt precision ](https://doc.rust-lang.org/std/fmt/#precision ) specifier.
2727
2828```ignore
2929let diagnostic = // ...
30- println!("{diagnostic:300?}"); // Prints with 300 width instead of the configured value
30+ println!("{diagnostic:. 300?}"); // Prints with 300 width instead of the configured value
3131```
3232*/
3333#[ derive( Debug , Clone ) ]
@@ -1374,7 +1374,7 @@ impl ReportHandler for GraphicalReportHandler {
13741374 return fmt:: Debug :: fmt ( diagnostic, f) ;
13751375 }
13761376
1377- if let Some ( width) = f. width ( ) {
1377+ if let Some ( width) = f. precision ( ) {
13781378 let mut handler = self . clone ( ) ;
13791379 handler. termwidth = width;
13801380 handler. render_report ( f, diagnostic)
You can’t perform that action at this time.
0 commit comments