Decode changed in IR?

Hello! I have been facing an issue with my code, whenever i run the code i get told the following:

The function decode(&results)) is deprecated and may not work as expected! Just use decode() without a parameter and IrReceiver.decodedIRData. .

I need someone to explain what this means as i'm extremely confused as to what has changed and how to go about doing it.

The following is the code used:

#include <IRremote.h>

int IRpin = 11;
IRrecv irrecv(IRpin);
decode_results results;

void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); 
}

void loop()
{
if (irrecv.decode(&results))
{
Serial.println(results.value, DEC); 
irrecv.resume(); 
}

}

And if you use:

if (IrReceiver.decode())

That means that you are using code written for an older version of the IRremote library (<3.0) with the new version of the library. The GitHub page for IRremote tells how to fix older code to work with the new version.