Skip to content

Commit

Permalink
Merge pull request #280 from dtolnay/repdoc
Browse files Browse the repository at this point in the history
Synchronize repetition documentation from rustdoc to readme
  • Loading branch information
dtolnay authored Aug 22, 2024
2 parents 3256f89 + fcee256 commit cc7528b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ let tokens = quote! {
Repetition is done using `#(...)*` or `#(...),*` similar to `macro_rules!`. This
iterates through the elements of any variable interpolated within the repetition
and inserts a copy of the repetition body for each one. The variables in an
interpolation may be anything that implements `IntoIterator`, including `Vec` or
a pre-existing iterator.
interpolation may be a `Vec`, slice, `BTreeSet`, or any `Iterator`.

- `#(#var)*` — no separators
- `#(#var),*` — the character before the asterisk is used as a separator
Expand Down

0 comments on commit cc7528b

Please sign in to comment.