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

[Doc] Clarify behavior of String.format with keys in replacements #89608

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

AThousandShips
Copy link
Member

@AThousandShips AThousandShips commented Mar 17, 2024

While this might be unreliable and unpredictable it is valid use of formatting and changing it would be break things IMO, and is a very old feature, so I'd prefer to document this over changing the code

Would need to be added to the format strings docs as well (which talks about this method).

@AThousandShips AThousandShips added enhancement documentation cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Mar 17, 2024
@AThousandShips AThousandShips added this to the 4.3 milestone Mar 17, 2024
@AThousandShips AThousandShips requested a review from a team as a code owner March 17, 2024 13:41
@akien-mga akien-mga merged commit 1b84421 into godotengine:master Apr 8, 2024
16 checks passed
@AThousandShips AThousandShips deleted the format_doc_fix branch April 8, 2024 09:28
@akien-mga
Copy link
Member

Thanks!

@AThousandShips
Copy link
Member Author

Thank you!

@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Apr 8, 2024
@akien-mga
Copy link
Member

Cherry-picked for 4.1.4.

@akien-mga akien-mga removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

String.format depends on the order of passed values, resulting in unwanted replacements.
3 participants