The district court dismissed plaintiff’s complaint without prejudice, acknowledging that amendment might not be futile. Nevertheless, the district court did not grant leave to amend and entered judgment the same day against plaintiff. This decision holds that, viewing the record as a whole, the district court intended to end the case, making its dismissal order final and appealable even though the dismissal was without prejudice.