From fcee256d42e8b502354c46414af388b849d366f4 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 22 Aug 2024 14:38:45 -0700 Subject: [PATCH] Synchronize repetition documentation from rustdoc to readme --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index bfc91a9..58bbf21 100644 --- a/README.md +++ b/README.md @@ -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