Add example to doc for `slice::ImmutableSlice::binary_search`.

Fix #17817.
auto merge of #17820 : pnkfelix/rust/fsk-improve-binary_search-doc2, r=alexcrichton

Add example to doc for `slice::ImmutableSlice::binary_search`.

Fix #17817.