A lesser-noticed part of President Donald Trump's controversial, rambling speech to a crowd of generals at Quantico this week got a brutal fact-check on Wednesday, as he made several incorrect claims about a district court ruling that went against him, but that he claimed was in fact a win.

The case stemmed from his exclusion of The Associated Press from White House events due to their refusal to abide by his executive order renaming the Gulf of Mexico. U.S. District Judge Trevor McFadden blocked this ruling, calling it a "brazen" violation of the First Amendment — but that isn't how Trump described what happened in his speech.

"I'm looking at a map. I'm saying, we have most of the frontage, why is it Gulf of Mexico? Why isn't it the Gulf of America?" said Trump. "And I made the change and it went smoothly. I mean, we had a couple of fake news outlets that refused to make the change and then one of them, AP took us to court and we won. And the judge, who was a somewhat liberal judge, said, the name is the Gulf of America, because AP refused to call it the Gulf of America. They wrote — they're not a good outfit by the way. They call it the Gulf of Mexico. I said, no, the Gulf of America is the name."

"And the judge actually said that, in fact, you can't even go into the room because what you're doing is not appropriate. The name is the Gulf of America. Google Maps changed the name. Everybody did, but AP wouldn't," Trump continued. "And then we won in court. How about that? Isn't that so cool."

Much of his rant was inaccurate, noted Politico's Kyle Cheney.

"Trump literally got everything about this wrong: McFadden ruled *against* him, is his own appointee, and never said anything approaching this," wrote Cheney on X.

Capping it all off, Trump is not even correct that the United States has more coastline on the Gulf than Mexico, although the United States does have slightly more maritime territorial area.

In June, a D.C. appeals court panel also dominated by Trump appointees reversed portions of McFadden's order, temporarily allowing some of the bans of the AP to continue while litigation on the merits proceeds.