Skip to content

Commit 211365d

Browse files
committed
review comments
1 parent 5d086c3 commit 211365d

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_typeck/check

1 file changed

+3
-3
lines changed

src/librustc_typeck/check/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4859,13 +4859,13 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
48594859
None
48604860
}
48614861

4862-
/// Given a function block's `NodeId`, return its `FnDecl` , `None` otherwise.
4862+
/// Given a function block's `NodeId`, return its `FnDecl` if it exists, or `None` otherwise.
48634863
fn get_parent_fn_decl(&self, blk_id: ast::NodeId) -> Option<(hir::FnDecl, ast::Ident)> {
48644864
let parent = self.tcx.hir().get(self.tcx.hir().get_parent(blk_id));
4865-
self.get_node_fn_decl(parent).map(|(fn_decl, ident , _)| (fn_decl, ident))
4865+
self.get_node_fn_decl(parent).map(|(fn_decl, ident, _)| (fn_decl, ident))
48664866
}
48674867

4868-
/// Given a function `Node`, return its `FnDecl` , `None` otherwise.
4868+
/// Given a function `Node`, return its `FnDecl` if it exists, or `None` otherwise.
48694869
fn get_node_fn_decl(&self, node: Node) -> Option<(hir::FnDecl, ast::Ident, bool)> {
48704870
match node {
48714871
Node::Item(&hir::Item {

0 commit comments

Comments
 (0)