Skip to content

Commit 6aab357

Browse files
ehsanmokcursor-agent
andcommitted
[nightly] Fix List[String].__str__() removed: use String.join() instead
Co-authored-by: cursor-agent <cursor-agent@cursor.sh> Made-with: Cursor
1 parent 439b74c commit 6aab357

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/04_gpu_parsing.mojo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ fn main() raises:
4848
with open("gpu_test.json", "r") as f:
4949
var file_data = load[target="gpu"](f)
5050
print(" Loaded from file successfully!")
51-
print(" Object keys:", file_data.object_keys().__str__())
51+
var keys = file_data.object_keys()
52+
print(" Object keys:", ", ".join(keys))
5253
print()
5354

5455
# Comparing CPU vs GPU (for demonstration)

0 commit comments

Comments
 (0)