Skip to content

Fix null-terminated translation in accepting-strings.md - #1

Open
caiyih wants to merge 1 commit into
Fomalhauthmj:mainfrom
caiyih:fix-null-terminated
Open

Fix null-terminated translation in accepting-strings.md#1
caiyih wants to merge 1 commit into
Fomalhauthmj:mainfrom
caiyih:fix-null-terminated

Conversation

@caiyih

@caiyih caiyih commented May 22, 2024

Copy link
Copy Markdown

原文中null-terminated的意思是C风格字符串是以\0代表字符串结束的

https://github.com/rust-unofficial/patterns/blob/3719748cfe67d5a888bbeaa8caa809e6aef93a56/src/idioms/ffi/accepting-strings.md?plain=1#L16

已有的中文翻译处理为'C语言的字符串是无终止的'

- C语言的字符串是无终止的,而Rust语言的字符串会存储其长度。

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