Unified patch of a code snippet
- Input
- antes: const idade = 30; console.log(nome); depois: const idade = 31; console.log(nome, idade);
- Expected output
- @@ -1,3 +1,3 @@ const nome = "Ana"; -const idade = 30; -console.log(nome); +const idade = 31; +console.log(nome, idade);
The unified format marks the unchanged line with a space, the removed one with `-` and the added one with `+`; here the `const nome` line drops out of the change header because it stays identical on both sides.