Skip to content

Commit

Permalink
Tweak documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed May 31, 2024
1 parent f19809c commit b88f550
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ impl Visitor<'_> for ReturnInGeneratorVisitor {
_ => {}
},
Stmt::FunctionDef(_) => {
// do not recurse into nested functions, as they are evaluated
// individually
// Do not recurse into nested functions; they're evaluated separately.
}
Stmt::Return(ast::StmtReturn { value, range }) => {
if Option::is_some(value) {
self.return_ = Some(*range);
}
Stmt::Return(ast::StmtReturn {
value: Some(_),
range,
}) => {
self.return_ = Some(*range);
}
_ => visitor::walk_stmt(self, stmt),
}
Expand Down

0 comments on commit b88f550

Please sign in to comment.