]> git.lizzy.rs Git - rust.git/commitdiff
fix `AdtDef` docs
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Wed, 3 Jun 2020 17:24:58 +0000 (19:24 +0200)
committerBastian Kauschke <bastian_kauschke@hotmail.de>
Wed, 3 Jun 2020 17:24:58 +0000 (19:24 +0200)
src/librustc_middle/ty/mod.rs

index a34cff06bc1cde367018565fec3ff3937134cce0..00c00a63b6b5db747849d59f5e530370af3a02a0 100644 (file)
@@ -1846,7 +1846,7 @@ pub struct FieldDef {
 
 /// The definition of a user-defined type, e.g., a `struct`, `enum`, or `union`.
 ///
-/// These are all interned (by `intern_adt_def`) into the `adt_defs` table.
+/// These are all interned (by `alloc_adt_def`) into the global arena.
 ///
 /// The initialism *ADT* stands for an [*algebraic data type (ADT)*][adt].
 /// This is slightly wrong because `union`s are not ADTs.