Basic Max7219 coding

I hope that this is not considered bumping, I am calling it being proactive 8) but I was playing around with the code and realised that I was both declaring and calling the setLed function in void setup.Well I think that's what I have done? So I just declared setLed in void setup and called it in void loop and the two LED's turn on and stay on. Please tell me why and please don't laugh I am trying ...This stuff is like trying to join a secret society :slight_smile:

#include "LedControl.h"

LedControl lc=LedControl(12,11,10,1);

 unsigned long delaytime=500;

void setup() {
  
  lc.shutdown(0,false);
  /* Set the brightness to a medium values */
  lc.setIntensity(0,8);
  /* and clear the display */
  lc.clearDisplay(0);
 
void setLed(int addr, int row, int col, boolean state);

}
void loop() { 
  
 lc.setLed(0,1,2,true);   
 lc.setLed(0,1,3,true); 
  
delay(500);

lc.setLed(0,1,2,false); 
lc.setLed(0,1,3,false); 
}