Updated

Jim Leyland came out to argue right away. Brandon Inge said he heard the ball make contact with Alberto Gonzalez's leg.

None of that mattered. Gonzalez's bunt single stood, and the Texas Rangers had the lead.

Gonzalez's bunt, which should have been a dead ball because it hit the Texas batter, drove in the go-ahead run in the 11th inning, and the Rangers went on to beat the Detroit Tigers 3-2 on Sunday.

"I saw just what it did: The ball came down and hit him on the back knee. Clearly. Clearly. That's not even a question," said Leyland, Detroit's manager. "The ball clearly hit him, and four guys happened to miss it. That's part of the game."

With the bases loaded and nobody out, Gonzalez's bunt glanced off his right leg after hitting his bat. The ball then bounced off the ground and out toward pitcher Thad Weber (0-1), who had no play at the plate on runner Nelson Cruz. Weber froze with the ball, and first baseman Miguel Cabrera struggled to get back to the bag in time. Everybody was safe, and Texas took the lead.

Leyland argued, but to no avail.

Gonzalez admitted after the game the ball hit him around the knee — and a replay confirmed that.

"As soon as he hit the ball and saw the ball was fair, he didn't stop himself," Gonzalez's translator said. "He was trying to go to first base. He knew the job was done."

Gonzalez appeared to be in the batter's box still when the ball hit him, meaning it would have almost certainly been ruled a foul ball if an umpire had seen the contact.

"I was closest to it, so I heard it," said Inge, who was playing third base. "Immediately, I tried to let them know it was a foul ball. ... I knew the guy from third was going to score because he was running before he even let the ball go."

Robbie Ross (3-0) pitched a scoreless 10th for Texas, and Joe Nathan finished for his fourth save.

Josh Hamilton homered for the Rangers.

The Tigers led 2-1 in the eighth — with rookie starter Drew Smyly in line for his first career win. But Texas tied it when Elvis Andrus drew a walk, went to second on a wild pitch and took third when catcher Alex Avila's throw to second went into the outfield for an error.

Hamilton hit a sacrifice fly to even the score.

Weber, who was called up from the minors in between games of Saturday's doubleheader, made his major league debut in the 11th. He walked Cruz and allowed singles to Mike Napoli and Yorvit Torrealba, setting up Gonzalez's at-bat with the bases loaded.

"Bases loaded, nobody out and the right person in the batter's box. The guy who was in the batter's box is one of the guys I do my fundamental stuff with," Texas manager Ron Washington said. "I had warned him that if this situation came up, look for the squeeze on the first pitch."

Weber then got out of the inning without any further damage by getting pinch-hitter Mitch Moreland to hit into a double play and Ian Kinsler to ground out.

Smyly pitched six innings, allowing a run and five hits with two walks and seven strikeouts, but he had to settle for his third straight no-decision. He's allowed only two earned runs in 16 innings on the season.

Texas starter Colby Lewis allowed two runs and seven hits in seven innings.

Hamilton gave Texas a 1-0 lead in the first with his seventh homer of the year, and Michael Young followed with a single to extend his hitting streak to 10 games. But Smyly settled in nicely after that.

Detroit tied it in the third when Ramon Santiago hit a leadoff triple and eventually scored on a two-out wild pitch.

In the sixth, Hamilton hit a single and went to second on a groundout. He then took third when — after one of Smyly's pitches — catcher Alex Avila's throw went over the southpaw for an error.

Smyly recovered, striking out Cruz and retiring Napoli on a flyball to end the threat.

Brennan Boesch hit a tiebreaking solo homer in the sixth, but Detroit couldn't hold on.

NOTES: The Tigers are off Monday. The Rangers are back home against the Yankees. Texas LHP Derek Holland (2-0) faces New York LHP CC Sabathia (1-0). ... Detroit RHP Doug Fister, on the 15-day DL since April 8 with a left side strain, says he doesn't have a specific timetable for his recovery. ... Cruz threw out Cabrera from the warning track in right in the third when the Detroit slugger was trying to stretch a single to a double. ... Avila made two errors but also threw out two runners trying to steal.