Skip to content

Conversation

jodz4k
Copy link

@jodz4k jodz4k commented Jun 29, 2025

fix #18334

findAnySubstring: aCollection startingAt: start

Part 2 :))

@Ducasse
Copy link
Member

Ducasse commented Jun 29, 2025

The comment is not correct

The following test is failing.

String>>#findAnySubstring:startingAt:: Doc comment is not well formed. Content: 'abcdef' findAnySubstring: 'cde' startingAt: 1 >>> 3

{ #category : 'finding/searching' }
String >> findAnySubstring: aCollection startingAt: start [
"Answer the index where an element of aCollection begins. If none are found, answer size + 1. aCollection is an Array of Strings or Characters."
"'abcdef' findAnySubstring: 'cde' startingAt: 1 >>> 3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put parentheses because >>> is a binary message so it is executed prior to findAny..:

@Ducasse Ducasse added the Status: Need more work The issue is nearly ready. Waiting some last bits. label Jun 29, 2025
@jordanmontt jordanmontt requested review from jordanmontt and removed request for jordanmontt June 30, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need more work The issue is nearly ready. Waiting some last bits.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

String >> findAnySubstring: aCollection startingAt: start deserves a couple of executable comments
3 participants