ReplaceRepeated::rrlim
An error occurs because this rule can be applied an infinite number of times:
0 //. p_ :> p + 1The maximum number of times that a rule will be applied is given by the value of the MaxIterations option:
Options[ReplaceRepeated]This shows a rule that is applied a finite number of times:
0 //. p_ :> p + 1 /; p < 1000