Skip to content

Commit

Permalink
Fix documentation for TyCtxt::all_impls
Browse files Browse the repository at this point in the history
  • Loading branch information
scrabsha committed Sep 6, 2020
1 parent ffaf158 commit 84fc6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/trait_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl<'tcx> TyCtxt<'tcx> {
}
}

/// Returns a vector containing all impls
/// Returns an iterator containing all impls
pub fn all_impls(self, def_id: DefId) -> impl Iterator<Item = DefId> + 'tcx {
let TraitImpls { blanket_impls, non_blanket_impls } = self.trait_impls_of(def_id);

Expand Down

0 comments on commit 84fc6fd

Please sign in to comment.