Identify the type of sentence used in the following example:

She went to the store, but forgot to buy milk
The example sentence is a compound sentence.
Below is an instruction that describes a task, write a response that appropriately completes the request.

### Instruction:
Identify the type of sentence used in the following example:

She went to the store, but forgot to buy milk

### Response:
The example sentence is a compound sentence.