2 of 2 Removed spaces, thanked Pavel

Rust, 152 142 bytes

|n|{for i in 0..n{println!("");if i%2==1{print!("<");for _ in 1..i{print!("-");}}else{for _ in 1..i{print!("-");}print!(">");}}println!("");};

Down from 152 bytes to 142 bytes thanks to Pavel.