Closed hannobraun closed 4 years ago
Looks good to me, thanks.
It seems like returning Length would be the right thing to do, but that's not what the length methods return. I figured I'd follow that established convention
We'll probably add back Length
variants of some methods when we have figured out a good naming convention. In any case, following the established convention is the right thing to do here.
@bors-servo r+
:pushpin: Commit 8e2baba has been approved by nical
:hourglass: Testing commit 8e2babacca456cf633f58383978cfb9645d2577a with merge 357d645dcb723df3f956eda624576bd9c532f116...
:sunny: Test successful - checks-travis Approved by: nical Pushing 357d645dcb723df3f956eda624576bd9c532f116 to master...
I don't know, if such a simple helper method is considered acceptable for this crate, but I figured the best way of asking that question is by just submitting a pull request.
I'm also not sure about the return value. It seems like returning
Length
would be the right thing to do, but that's not what thelength
methods return. I figured I'd follow that established convention, but I'm happy to make changes as requested.