Skip to content

Commit

Permalink
Merge pull request rust-lang#726 from phansch/small_pointer_improvement
Browse files Browse the repository at this point in the history
Small improvements to types/pointer.md
  • Loading branch information
Centril authored Jan 18, 2020
2 parents a94b0ef + 4f64772 commit 11e893f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types/pointer.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ 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
also have their addition data compared.
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 additional data compared.

## Smart Pointers

Expand Down

0 comments on commit 11e893f

Please sign in to comment.