about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-10-21 19:54:14 -0700
committerNoah Lev <camelidcamel@gmail.com>2021-10-21 19:54:14 -0700
commitb987fd78c2956fde0c9fe8a9ab4b9154dc5671da (patch)
treed78a35e01b33cfbb7b24b08d8f3476e89a4ac57b /src
parent547a6ffee0cf4da9929a9e3d49546dc87d607735 (diff)
downloadrust-b987fd78c2956fde0c9fe8a9ab4b9154dc5671da.tar.gz
rust-b987fd78c2956fde0c9fe8a9ab4b9154dc5671da.zip
Fix docs for `inline::build_impl`
Based on looking at the source code, it looks like the `did` needs to be
for an impl, not functions in an impl.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/clean/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs
index e11b802a09a..87e17a771a5 100644
--- a/src/librustdoc/clean/inline.rs
+++ b/src/librustdoc/clean/inline.rs
@@ -325,7 +325,7 @@ fn merge_attrs(
     }
 }
 
-/// Builds a specific implementation of a type. The `did` could be a type method or trait method.
+/// Inline an `impl`, inherent or of a trait. The `did` must be for an `impl`.
 crate fn build_impl(
     cx: &mut DocContext<'_>,
     parent_module: impl Into<Option<DefId>>,