From 9b619d661b5c633316f76422fc12853ddbce598a Mon Sep 17 00:00:00 2001 From: vvorotnikov Date: Thu, 12 Jan 2017 12:02:46 +0300 Subject: [PATCH] Correct a typo in usage --- agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents.py b/agents.py index cd5f0b865..534867ee9 100644 --- a/agents.py +++ b/agents.py @@ -325,7 +325,7 @@ def delete_thing(self, thing): class Direction(): '''A direction class for agents that want to move in a 2D plane Usage: - d = Direction("Down") + d = Direction("down") To change directions: d = d + "right" or d = d + Direction.R #Both do the same thing Note that the argument to __add__ must be a string and not a Direction object.