servo not declared question

Hello,

I've tried to write a sketch to make two servos run, one after the other. I get a variety of error messages when I try to verify, most usually: 'manout' was not declared in this scope.

Any helpful comments about this error message and any other obvious errors in the sketch will be greatly appreciated.

Thanks,
-Rick

#include <Servo.h>

Servo servoMan;
Servo servoFish;

void setup() {
servoMan.attach(10);
servoFish.attach(9);
}

void loop() {
jump();
jump();
jump();
delay(5000);
manout();
delay(5000);

}

void jump() {
for (pos = 0; pos <= 180; pos += 1) {
// in steps of 1 degree
servoMan.write(pos);
delay(15);
}
for (pos = 180; pos >= 0; pos -= 1) {
servoMan.write(pos);
delay(15);
}

void manout() {
for (pos = 0; pos <= 180; pos += 1) {
// in steps of 1 degree
servoFish.write(pos);
delay(15);
}
for (pos = 180; pos >= 0; pos -= 1) {
servoFish.write(pos);
delay(15);
}

Neither your jump nor manout functions have a closing brace.

wildbill:
Neither your jump nor manout functions have a closing brace.

Which would have been more obvious to him/her if the code had been (1) Auto formatted in the IDE and (2) posted here in code tags

#include <Servo.h>

Servo servoMan;
Servo servoFish;

void setup()
{
  servoMan.attach(10);
  servoFish.attach(9);
}

void loop()
{
  jump();
  jump();
  jump();
  delay(5000);
  manout();
  delay(5000);
}

void jump()
{
  for (pos = 0; pos <= 180; pos += 1)
  {
    // in steps of 1 degree
    servoMan.write(pos);
    delay(15);
  }
  for (pos = 180; pos >= 0; pos -= 1)
  {
    servoMan.write(pos);
    delay(15);
  }
  
  void manout()
  {
    for (pos = 0; pos <= 180; pos += 1)
    {
      // in steps of 1 degree
      servoFish.write(pos);
      delay(15);
    }
    for (pos = 180; pos >= 0; pos -= 1)
    {
      servoFish.write(pos);
      delay(15);
    }

RickGush please take note