]> git.lizzy.rs Git - rust.git/commitdiff
clean up `get_vtable`'s doc comment
authorOliver Schneider <oli-obk@users.noreply.github.com>
Thu, 8 Sep 2016 10:58:05 +0000 (12:58 +0200)
committerGitHub <noreply@github.com>
Thu, 8 Sep 2016 10:58:05 +0000 (12:58 +0200)
src/librustc_trans/meth.rs

index e958795570eee1ed7fe72cd99bc7a411251666fb..ee2f24d21e07cb846e6f3ea6be5aae8bab081b2a 100644 (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`.