diff --git a/docs/source/loading.mdx b/docs/source/loading.mdx index 16b44259efd..3ef4a059809 100644 --- a/docs/source/loading.mdx +++ b/docs/source/loading.mdx @@ -257,7 +257,7 @@ Create a dataset from a Python generator with [`~Dataset.from_generator`]: ... for i in range(1, 4): ... yield {"a": i} ... ->>> dataset = Dataset.from_generator(my_dict) +>>> dataset = Dataset.from_generator(my_gen) ``` This approach supports loading data larger than available memory.