Cops arrested two teenagers shortly after a gunpoint robbery in Yerba Buena Gardens on Tuesday, police said.
The suspects, ages 14 and 15, are accused of stealing a laptop from a 21-year-old man just after 7 p.m.
The victim gave up the fight to keep his laptop after the 14-year-old allegedly pointed a handgun at him, police said.
The suspects fled, but police say they arrested them soon after.
The teens will not be named because they are minors.
The victim was not injured during the attack, police said.