From f131a13363ac153a9db5072844738c2086edf93e Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Wed, 4 Dec 2019 07:49:52 +0100 Subject: [PATCH 1/2] Small improvements to types/pointer.md IIUC, this paragraph is still only talking about raw pointers, so I made that explicit like in the two paragraphs above. --- src/types/pointer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/pointer.md b/src/types/pointer.md index 70d8d8c0332c4..be7d06f265307 100644 --- a/src/types/pointer.md +++ b/src/types/pointer.md @@ -40,8 +40,8 @@ reference by reborrowing it (`&*` or `&mut *`). Raw pointers are generally discouraged in Rust code; they exist to support interoperability with foreign code, and writing performance-critical or low-level functions. -When comparing pointers they are compared by their address, rather than by -what they point to. When comparing pointers to [dynamically sized types] they +When comparing raw pointers they are compared by their address, rather than by +what they point to. When comparing raw pointers to [dynamically sized types] they also have their addition data compared. ## Smart Pointers From 4f647729f75a753d708876ab250a981c3c2a5185 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Wed, 4 Dec 2019 07:55:27 +0100 Subject: [PATCH 2/2] addition -> additional --- src/types/pointer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/pointer.md b/src/types/pointer.md index be7d06f265307..8ed3fa8b90209 100644 --- a/src/types/pointer.md +++ b/src/types/pointer.md @@ -42,7 +42,7 @@ code, and writing performance-critical or low-level functions. When comparing raw pointers they are compared by their address, rather than by what they point to. When comparing raw pointers to [dynamically sized types] they -also have their addition data compared. +also have their additional data compared. ## Smart Pointers