U.S. oil erased gains Wednesday as the dollar jumped following the release of Federal Reserve meeting minutes that showed policymakers could raise interest rates in June.

A stronger greenback makes dollar-denominated commodities more expensive to holders of other currencies.