You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Clang docs don't specify what happens if we request a child comment that is out of bounds. We should make sure we don't do it at all. We can make the function return an Option<Comment> instead of plain Comment and return None if i >= self.num_children(). Otherwise we can proceed normally and return Some.
I can mentor whoever would like to work on this.
The text was updated successfully, but these errors were encountered:
The Clang docs don't specify what happens if we request a child comment that is out of bounds. We should make sure we don't do it at all. We can make the function return an
Option<Comment>
instead of plainComment
and returnNone
ifi >= self.num_children()
. Otherwise we can proceed normally and returnSome
.I can mentor whoever would like to work on this.
The text was updated successfully, but these errors were encountered: