Function Troubles

Hello all,
I’m fairly new to Arduino and have limited programming knowledge under my belt (one semester CS). I am fiddling with making a program smaller and decided to tinker with writing some functions, namely a light blink method. I couldn’t get it to work in my program, so I took it back to the basics to mess with the blinky light program on pin 13. Couldn’t make it work so I looked up the tutorial on functions: http://playground.arduino.cc/Code/Function
I even entered in the exact code in the tutorial and it still won’t work when I upload it to the board. What gives? Is this tutorial up to date? Is there some secret Arduino language thing I’m missing? This is a fairly basic concept and it’s frustrating me that I can’t seem to make it work.
I’m on a mac using Arduino 1.6.7, here is my code:

void setup() {
  pinMode(13, OUTPUT);

}


void loop() {
  blinkLED();           
}

void blinkLED(){
  analogWrite(13, HIGH);
  delay(1000);
  analogWrite(13, LOW);
  delay(1000);
}

Try digitalWrite instead

Pin 13 is not an analogue output pin. Try digitalWrite() instead

UKHeliBob: Pin 13 is not an analogue output pin. Try digitalWrite() instead

Even if it were, I doubt you'd see the difference between off and 1/255 bright

Wow... Can't believe I missed that. Yup, ok thanks!

Groove: Even if it were, I doubt you'd see the difference between off and 1/255 bright

True. I wondered about expanding my reply when I wrote it but decided to keep it simple.