Removed an assignment in an if statement in one of the examples.

if (n = 1) --> if (n == 1).