Skip to content

Issue #4312 - Fixed Precison of Dangling Pointer Definition#4313

Closed
sunnyallana wants to merge 1 commit into
rust-lang:mainfrom
sunnyallana:fix-dangling-ptr-def-precision
Closed

Issue #4312 - Fixed Precison of Dangling Pointer Definition#4313
sunnyallana wants to merge 1 commit into
rust-lang:mainfrom
sunnyallana:fix-dangling-ptr-def-precision

Conversation

@sunnyallana
Copy link
Copy Markdown

Current Definition on page 103 under the heading Dangling References:

"In languages with pointers, it’s easy to erroneously create a dangling pointer—a pointer that
references a location in memory that may have been given to someone else—by freeing
some memory while preserving a pointer to that memory."

Proposed Change:

In languages with pointers, it’s easy to erroneously create a dangling pointer — a pointer that references a memory location that has been de-allocated or the original data no longer exists, but the reference still tries to access it.

@sunnyallana sunnyallana changed the title Update ch04-02-references-and-borrowing.md - dangling-ptr-def-precisi… Isse #4312 - Fixed Precison of Dangling Pointer Definition Apr 5, 2025
@sunnyallana sunnyallana changed the title Isse #4312 - Fixed Precison of Dangling Pointer Definition Issue #4312 - Fixed Precison of Dangling Pointer Definition Apr 5, 2025
@sunnyallana
Copy link
Copy Markdown
Author

@chriskrycho Kindly review

@sunnyallana sunnyallana closed this Apr 9, 2025
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