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

docs: fix Chinese doc errors for substring func #2661

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

Dream95
Copy link
Contributor

@Dream95 Dream95 commented Mar 2, 2024

substring function not support Negative integer

@ngjaying
Copy link
Collaborator

ngjaying commented Mar 2, 2024

Thanks. Actually, we expect to support negative index. So instead of modifying the doc, shall we modify the code?

@Dream95
Copy link
Contributor Author

Dream95 commented Mar 2, 2024

What will be substring('abcde',2,-1) return?

@ngjaying
Copy link
Collaborator

ngjaying commented Mar 3, 2024

What will be substring('abcde',2,-1) return?

-1 means (length-1). This will return index [2 to 4] which is "cde". Is it reasonable?

@ngjaying
Copy link
Collaborator

ngjaying commented Mar 5, 2024

Currently,let's just fix the doc. @Dream95 Could you please take a look at the Details of DCO check and try to pass it. Thanks.

substring function not support Negative integer

Signed-off-by: Dream95 <[email protected]>
@ngjaying ngjaying changed the title docs: Modify the Chinese doc errors of the substring function. docs: fix Chinese doc errors for substring func Mar 6, 2024
@ngjaying ngjaying merged commit a897766 into lf-edge:master Mar 6, 2024
54 of 56 checks passed
@Dream95 Dream95 deleted the doc_fix branch November 5, 2024 02:35
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.

3 participants