rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.75k stars 258 forks source link

Typo: C ABI -> C API #314

Closed kelvin-273 closed 2 years ago

ehuss commented 2 years ago

Thanks for the PR! I think the original appears correct to me. The default for an extern block is the C ABI, and I think what the sentence is trying to say is that the functions are being defined with that ABI.

PureWhiteWu commented 2 years ago

ABI means Application Binary Interface, which is completely different from API.

kelvin-273 commented 2 years ago

Ah my bad. This would be my first time learning about ABIs. Could it help if the this was hyperlinked to the Rust Reference or would that open the flood gate to a whole lot of unnecessary cross referencing?

PureWhiteWu commented 2 years ago

Ah my bad. This would be my first time learning about ABIs. Could it help if the this was hyperlinked to the Rust Reference or would that open the flood gate to a whole lot of unnecessary cross referencing?

I think this is unnecessary. If someone does not understand these terms, they should go to Google themselves. After all, this book is not for beginners.

kelvin-273 commented 2 years ago

Fair enough