This summary is not the rule. The rule text controls.
When someone acts out of line in front of a judge, like being disrespectful or disruptive in the courtroom, the judge can punish that person right away. This is called "direct contempt" because it happens directly in front of the court. The judge doesn't need to hold a full trial to decide on punishment, but the person does get a chance to speak up and explain themselves or ask for a lighter punishment before anything is decided.
Once the judge decides on the punishment, they have to write it down formally. This written order needs to explain exactly what the person did wrong, state that the judge is finding them guilty, and say what the punishment will be. This paperwork protects everyone involved by creating a clear record of what happened and why the person was punished.
For someone facing this situation, it means the process moves fast. There's no lengthy court battle or waiting period. But the person still has the right to say something in their own defense before the judge makes a final decision.