An eye for an eye" was an old saying, which was meaning if someone gave you an injury then it was ok to injure them back. Gandhi wanted to express how this revenge excuse would only lead the community to wounding each other until everyone was wounded.