clean up `get_vtable`'s doc comment

This commit is contained in:
Oliver Schneider 2016-09-08 12:58:05 +02:00 committed by GitHub
parent a5dbf8a0f8
commit a3f05cec76
1 changed files with 3 additions and 1 deletions

View File

@ -116,9 +116,11 @@ pub fn trans_object_shim<'a, 'tcx>(ccx: &'a CrateContext<'a, 'tcx>,
llfn
}
/// Creates a returns a dynamic vtable for the given type and vtable origin.
/// Creates a dynamic vtable for the given type and vtable origin.
/// This is used only for objects.
///
/// The vtables are cached instead of created on every call.
///
/// The `trait_ref` encodes the erased self type. Hence if we are
/// making an object `Foo<Trait>` from a value of type `Foo<T>`, then
/// `trait_ref` would map `T:Trait`.