Skip to content

Commit

Permalink
Merge pull request pharo-project#4786 from MarcusDenker/4661-doWithIn…
Browse files Browse the repository at this point in the history
…dex-comment-is-incorrect

4661-doWithIndex-comment-is-incorrect
  • Loading branch information
MarcusDenker committed Oct 1, 2019
2 parents 3c5b779 + 0bf9195 commit 64eb627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Collections-Abstract/SequenceableCollection.class.st
Expand Up @@ -733,7 +733,7 @@ SequenceableCollection >> do: aBlock without: anItem [

{ #category : #enumerating }
SequenceableCollection >> doWithIndex: elementAndIndexBlock [
"Just like with:do: except that the iteration index supplies the second argument to the block."
"Just like do: except that the iteration index supplies the second argument to the block"
"Use the new version with consistent naming"

"(Array streamContents: [:stream | #(11 22 13) doWithIndex: [ :each :i | stream nextPut: (each * each + i)]]) >>> #(122 486 172)"
Expand Down Expand Up @@ -2017,7 +2017,7 @@ SequenceableCollection >> withIndexCollect: elementAndIndexBlock [

{ #category : #enumerating }
SequenceableCollection >> withIndexDo: elementAndIndexBlock [
"Just like with:do: except that the iteration index supplies the second argument to the block. "
"Just like do: except that the iteration index supplies the second argument to the block"

"(Array streamContents: [:stream| #(11 22 13) withIndexDo: [ :each :i | stream nextPut: (each * each + i)]]) >>> #(122 486 172)"

Expand Down
2 changes: 1 addition & 1 deletion src/Slot-Core/LayoutClassScope.class.st
Expand Up @@ -176,7 +176,7 @@ LayoutClassScope >> visibleSlots [

{ #category : #enumerating }
LayoutClassScope >> withIndexDo: elementAndIndexBlock [
"Just like with:do: except that the iteration index supplies the second argument to the block."
"Just like do: except that the iteration index supplies the second argument to the block"
1 to: self size do:
[:index |
elementAndIndexBlock
Expand Down

0 comments on commit 64eb627

Please sign in to comment.