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

"String.num_scientific(a)"'s sample is wrong typed. #9012

Closed
FancyMirage opened this issue Feb 24, 2024 · 0 comments · Fixed by godotengine/godot#88767
Closed

"String.num_scientific(a)"'s sample is wrong typed. #9012

FancyMirage opened this issue Feb 24, 2024 · 0 comments · Fixed by godotengine/godot#88767
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug

Comments

@FancyMirage
Copy link

Your Godot version:
4.2

Issue description:

About [ String num_scientific ( float number ) static ] sample, the correct content should be "print(String.num_scientific(a)) , but the sample in doc and Godot 4 help are "print(String.NumScientific(n))". Will be error if you just copy & paste content in this sample.

URL to the documentation page:
https://docs.godotengine.org/zh-cn/4.x/classes/class_string.html#class-string-method-num-scientific

Not only zh-cn sample wrong.

@AThousandShips AThousandShips added the area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants