add if to borrowed ptr tutorial
Merge pull request #4708 from dforsyth/add_if

add if to borrowed ptr tutorial