Skip to content

docs: fix duplicate "to" in IterableDataset push-to-hub example - #8252

Merged
lhoestq merged 1 commit into
huggingface:mainfrom
DaoyuanLi2816:fix/duplicate-to-stream-doc
Jun 9, 2026
Merged

lhoestq merged 1 commit into
huggingface:mainfrom
DaoyuanLi2816:fix/duplicate-to-stream-doc

Conversation

@DaoyuanLi2816

Copy link
Copy Markdown
Contributor

What does this PR do?

The save-to-hub paragraph in docs/source/stream.mdx (line 584) currently reads:

"you wish to save it to to [~Dataset.push_to_hub]"

The first to closes the relative clause ("the repo you wish to save it to"), and the second to introduces the function argument. The collision reads as a typo. Rephrase as:

"...you wish to save it to as an argument to [~Dataset.push_to_hub]"

…which keeps both meanings explicit without the adjacent duplicate.

Single-line, doc-only change. The same file is touched by #8109 but at different lines (60, 97, 276); line 584 is not in that PR's diff.

Before submitting

  • Did you read the contributor guideline?
  • This PR fixes a typo in the docs.
  • Did you make sure to update the documentation with your changes? (This PR is the documentation change.)
  • Did you write any new necessary tests? (N/A, docs-only.)

The save-to-hub paragraph in `docs/source/stream.mdx` currently reads
"you wish to save it to to [`~Dataset.push_to_hub`]", where the first
`to` closes the relative clause ("the repo you wish to save it to") and
the second `to` introduces the function argument. The collision reads
as a typo. Rephrase as "...you wish to save it to as an argument to
[`~Dataset.push_to_hub`]" to keep both meanings explicit without the
adjacent duplicate.

@lhoestq lhoestq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx !

@lhoestq
lhoestq merged commit 0e77a5d into huggingface:main Jun 9, 2026
Elsword016 pushed a commit to Elsword016/datasets that referenced this pull request Aug 6, 2026
…ingface#8252)

The save-to-hub paragraph in `docs/source/stream.mdx` currently reads
"you wish to save it to to [`~Dataset.push_to_hub`]", where the first
`to` closes the relative clause ("the repo you wish to save it to") and
the second `to` introduces the function argument. The collision reads
as a typo. Rephrase as "...you wish to save it to as an argument to
[`~Dataset.push_to_hub`]" to keep both meanings explicit without the
adjacent duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants