SURPRISE, Ariz. (AP) -- Two of the three hits Matt Cain allowed left the park Thursday night. In the end, it didn't matter.
Cain allowed two runs in seven innings and the San Francisco Giants rallied to beat Texas 6-2, snapping the Rangers' three-game winning streak.
"I threw some good sliders and threw some bad ones," said Cain, who has allowed four earned runs in 20 23 innings for a 1.74 ERA. "I think I need to think about what I need to do to throw more good ones."
Mike Napoli and Mitch Moreland hit consecutive home runs to start the second inning for the Rangers, but Cain didn't allow another hit until Josh Hamilton doubled to lead off the seventh.
"After that, he really settled down and pitched great," Giants manager Bruce Bochy said. "It's good for him to have a game like this as we get close. Matt's ready."
Cain retired the first three batters he faced, and then 17 of his final 19.
Cain will be the Giants' third starter behind Tim Lincecum and Madison Bumgarner.