]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/hir/def_id.rs
Add single doc comment to librustc/hir/def_id.rs
[rust.git] / src / librustc / hir / def_id.rs
index 47604b961ae4ac04f505fe9b013d504575cfaee6..ce2baa738975b683b5cdc2d4aec1b458cc691f7e 100644 (file)
@@ -187,6 +187,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
 
 
 impl DefId {
+    /// Make a local `DefId` with the given index.
     pub fn local(index: DefIndex) -> DefId {
         DefId { krate: LOCAL_CRATE, index: index }
     }