:trollface: 修复注释

This commit is contained in:
achao 2022-08-02 10:01:14 +08:00 committed by VampireAchao
parent 65ea5c2066
commit 040a039d10

View File

@ -716,10 +716,10 @@ public class FastStream<T> implements Stream<T>, Iterable<T> {
* @param <A> 给定的数组类型
* @return 包含此流元素的指定的数组
* @throws ArrayStoreException 如果元素转换失败例如不是该元素类型及其父类则抛出该异常
* <p>
* 例如以下代码编译正常但运行时会抛出 {@link ArrayStoreException}
* <pre>{@code
* String[] strings = Stream.<Integer>builder().add(1).build().toArray(String[]::new);
* }</pre>
* <pre>{@code String[] strings = Stream.<Integer>builder().add(1).build().toArray(String[]::new); }</pre>
* <p>
*/
@Override
public <A> A[] toArray(IntFunction<A[]> generator) {