[ci skip] Update code example with 2.2 on OS X.