Skip to content

Commit 817082c

Browse files
committed
add doc strings to use_trivial_contructor.rs
1 parent f9379df commit 817082c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ide-db/src/use_trivial_contructor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
//! Functionality for generating trivial contructors
2+
13
use hir::StructKind;
24
use syntax::ast;
35

6+
/// given a type return the trivial contructor (if one exists)
47
pub fn use_trivial_constructor(
58
db: &crate::RootDatabase,
69
path: ast::Path,

0 commit comments

Comments
 (0)