Skip to content

Commit

Permalink
Comment nit
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Mar 12, 2020
1 parent db9ddf1 commit d0b1211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/ty/print/pretty.rs
Expand Up @@ -1018,7 +1018,7 @@ pub trait PrettyPrinter<'tcx>:
" as ",
)?;
}
// For function type zsts just printing the type is enough
// For function type zsts just printing the path is enough
(Scalar::Raw { size: 0, .. }, ty::FnDef(d, s)) => p!(print_value_path(*d, s)),
// Empty tuples are frequently occurring, so don't print the fallback.
(Scalar::Raw { size: 0, .. }, ty::Tuple(ts)) if ts.is_empty() => p!(write("()")),
Expand Down

0 comments on commit d0b1211

Please sign in to comment.