From 02505270694079a8cd6eff1a5173f2de38cec6c7 Mon Sep 17 00:00:00 2001 From: Joe Littlejohn Date: Sun, 10 May 2020 16:22:41 +0100 Subject: [PATCH] Fix typo: Stack not Stacks --- src/main/scala/stdlib/Iterables.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/Iterables.scala b/src/main/scala/stdlib/Iterables.scala index a19e66fe..91a3c162 100644 --- a/src/main/scala/stdlib/Iterables.scala +++ b/src/main/scala/stdlib/Iterables.scala @@ -35,7 +35,7 @@ object Iterables extends AnyFlatSpec with Matchers with org.scalaexercises.defin * * Quite a few subclasses of `Iterable` override this standard implementation of `foreach` in `Iterable`, because they can provide a more efficient implementation. Remember that `foreach` is the basis of the implementation of all operations in `Traversable`, so its performance matters. * - * Some common iterables are `Set`, `List`, `Vector`, `Stacks` and `Stream`. Iterator has two important methods: `hasNext`, which answers whether the iterator has another element available, and `next` which returns the next element in the iterator. + * Some common iterables are `Set`, `List`, `Vector`, `Stack` and `Stream`. Iterator has two important methods: `hasNext`, which answers whether the iterator has another element available, and `next` which returns the next element in the iterator. * */ def collectionIterablesIterables(res0: Int) = {