Code correction on arduino attachinterrupt page

I'm refering to the page here
The example code is incorrect. The example shows led state change in pin 13 when interrupt occurs, but the interrupt is attached to pin 13 instead of external interrupt pin 2 or3

Here is the corrected code.

const int pin = 13;
const int interruptPin = 2;
volatile int state = LOW;

void setup() {
    pinMode(pin, OUTPUT);
    attachInterrupt(digitalPinToInterrupt(interruptPin), blink, CHANGE);
}

void loop() {
    digitalWrite(pin, state);
}

void blink() {
    state = !state;
}

Yes, you are right.
In old example:

int pin = 13;
volatile int state = LOW;

void setup()
{
pinMode(pin, OUTPUT);
attachInterrupt(0, blink, CHANGE);
}

void loop()
{
digitalWrite(pin, state);
}

void blink()
{
state = !state;
}

Thank you, I have corrected themselves on the page of your sample

I reported this error to the issue tracker: [Reference] attachInterrupt() example and documentation corrections · Issue #4723 · arduino/Arduino · GitHub

The example on the reference page has been corrected. Thanks for reporting this hemalchevli!