Skip to content

Clarify specification of example function used in ch04-03#4340

Closed
bobszi wants to merge 1 commit into
rust-lang:mainfrom
bobszi:ch04-03-clarify-function-spec
Closed

Clarify specification of example function used in ch04-03#4340
bobszi wants to merge 1 commit into
rust-lang:mainfrom
bobszi:ch04-03-clarify-function-spec

Conversation

@bobszi
Copy link
Copy Markdown

@bobszi bobszi commented Apr 17, 2025

I think that, for example, the string " word1 word2" counts as "string of words separated by spaces", therefore I added a small clarification to the input requirements of the function, because the implementation of the function in the chapter does not work correctly with inputs that have one or more leading spaces.

Added some clarification to the input requirements of the function, because the implementation of the function in the chapter does not work correctly with inputs that have one or more leading spaces.
@bobszi bobszi closed this by deleting the head repository Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant