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

book: fix imprecise description of NULL in C++ #279

Merged
merged 1 commit into from
May 20, 2024

Conversation

frederick-vs-ja
Copy link
Contributor

resolve #274

Description

The description of NULL in C++ in 02-usability.md was fundamentally wrong. This PR correct the description and explain what null pointer constants does.

Change List

  • Add explanation for null pointer constants
  • Resolve erroneous description of NULL in C++

Reference


说明

02-usability.md 中关于 NULL 在 C++ 中的描述有基础错误。此 PR 更正描述并解释了空指针常量会做什么。

变化箱单

  • 增加了空指针常量相关的说明
  • 解决了关于 NULL 在 C++ 中的错误描述

参考文献

@changkun changkun merged commit bdf0e89 into changkun:master May 20, 2024
@frederick-vs-ja frederick-vs-ja deleted the fix-NULL branch May 21, 2024 01:36
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.

C++ 中不允许将 NULL 定义为 ((void*)0)
2 participants