A carboxylic acid has a [ ] group and a [ ] group attached to the same carbon.
A carboxylic acid has a carbonyl group and a hydroxyl group attached to the same carbon.