From 5c433cae7881dd3889d77fb2d943ff8aacaa10c3 Mon Sep 17 00:00:00 2001 From: Seulbae Kim Date: Tue, 2 Jun 2020 14:25:52 -0400 Subject: [PATCH] Fix inconsistency in the doc with the actual API. `spawn_actor()` raises an exception, and `try_spawn_actor()` returns `None` on failure. However, the documentation swapped the descriptions of those two. --- Docs/core_actors.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Docs/core_actors.md b/Docs/core_actors.md index 777a0d3ae..2e60ac0a3 100644 --- a/Docs/core_actors.md +++ b/Docs/core_actors.md @@ -70,8 +70,8 @@ __The world object is responsible of spawning actors and keeping track of these. The world has two different methods to spawn actors. -* [`spawn_actor()`](python_api.md#carla.World.spawn_actor) returns `None` if the spawning failed. -* [`try_spawn_actor()`](python_api.md#carla.World.try_spawn_actor) raises an exception if the spawning failed. +* [`spawn_actor()`](python_api.md#carla.World.spawn_actor) raises an exception if the spawning fails. +* [`try_spawn_actor()`](python_api.md#carla.World.try_spawn_actor) returns `None` if the spawning fails. ```py transform = Transform(Location(x=230, y=195, z=40), Rotation(yaw=180)) @@ -300,4 +300,4 @@ CARLA forum 3rd. Maps and navigation

- \ No newline at end of file +