Help With "The Most Complete Starter Pack" Tutorial Lesson 8 Code

int latchPin = 5;
int clockPin = 6;
int dataPin = 4;
byte leds = 0;
void setup() {
  // put your setup code here, to run once:
  pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT);
  pinMode(clockPin, OUTPUT);

}

void loop() {
  leds = 0;
  updateShiftRegister[];
  delay(500);
  for (int i = 0;i<8;i++)
  {
    bitSet(leds, i);
    updateShiftRegister[];
    delay(500);
  }
  }
void updateShiftRegister[]
{
  digitalWrite(latchPin, LOW);
  shiftOut(dataPin, clockPin, LSBFIRST,leds);
  digitalWrite(latchPin, HIGH);
  // put your main code here, to run repeatedly:

}

I am new to Arduino and am trying to work my way through the tutorial however I can not find what to change with this code I keep getting the error message “UpdateShiftRegister was not declared in this scope”
I attempted to copy the code on the tutorial word for word to start with

You did not copy very well, you want () not []. Also watch your caps, the error probably said updateShiftRegister, not UpdateShiftRegister.

Thank you I had changed the caps after it didn't run the first time and the I can't believe I missed the () []