]> git.lizzy.rs Git - rust.git/commit
std: Fix peeling ports from addresses
authorAlex Crichton <alex@alexcrichton.com>
Fri, 6 Mar 2015 01:20:16 +0000 (17:20 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 6 Mar 2015 01:20:16 +0000 (17:20 -0800)
commit65b4eda5a6f270f5c30beec66c59825aba0524b9
treece26b606856fdfdd6322d7dd6206959995cb4c3b
parentf0c74f85f363a8081b31f9ab696463717ce312d5
std: Fix peeling ports from addresses

The `rsplitn` call was called with 2 instead of 1 so the iterator would yield 3
items in some cases, not the 2 that it should have.

Closes #23076
src/libstd/net/addr.rs