Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dynamic_text builder doc comment #6978

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Conversation

cnpryer
Copy link
Contributor

@cnpryer cnpryer commented Aug 29, 2023

This PR adds a little more detail to dynamic_text's documentation.

This isn't really necessary since I'm sure 'dynamic' implies this logic in some way that I'm not familiar with yet, but I'm always looking for even subtle improvements to help the next reader.

Since I didn't read the implementation I failed to realize that this builder allocates a new string -- which would have influenced my decision using it for some use cases. See #6901 (comment) for more context.

Idk if this is just me, but I tend to start out by running cargo doc -p ruff_formatter --open to gain some familiarity with the project (I should start using the source button in addition to reading the documentation lol :)).

@MichaReiser MichaReiser added the formatter Related to the formatter label Aug 29, 2023
@MichaReiser MichaReiser merged commit 924f101 into astral-sh:main Aug 29, 2023
16 checks passed
@cnpryer cnpryer deleted the chore branch August 29, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatter Related to the formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants