From f1cf5f0593f8695ae5a7c5fd0d9d65996dfe04ac Mon Sep 17 00:00:00 2001 From: karim kohel <46066647+karimkohel@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:22:36 +0200 Subject: [PATCH] Update typo in example code in core_actors.md some of the example code was C like, fixed it to be pythonic --- Docs/core_actors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/core_actors.md b/Docs/core_actors.md index b08653aeadf..c8e0d0c30f6 100644 --- a/Docs/core_actors.md +++ b/Docs/core_actors.md @@ -42,7 +42,7 @@ vehicle_bp = random.choice(blueprint_library.filter('vehicle.*.*')) Besides that, each [carla.ActorBlueprint](python_api.md#carla.ActorBlueprint) has a series of [carla.ActorAttribute](python_api.md#carla.ActorAttribute) that can be _get_ and _set_. ```py is_bike = [vehicle.get_attribute('number_of_wheels') == 2] -if(is_bike) +if is_bike: vehicle.set_attribute('color', '255,0,0') ``` !!! Note