diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-10-23 18:17:32 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-10-25 17:59:30 +0000 |
| commit | eda1928baa868495cd3481358390f8a4e286a659 (patch) | |
| tree | b12e4c0eabb867ce48d8b20c4eb83f4031e73790 | |
| parent | d80eb3a498fe6dea75ea37142aae81ba26783efc (diff) | |
| download | rust-eda1928baa868495cd3481358390f8a4e286a659.tar.gz rust-eda1928baa868495cd3481358390f8a4e286a659.zip | |
Typo.
| -rw-r--r-- | src/tools/miri/tests/pass/function_pointers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/tests/pass/function_pointers.rs b/src/tools/miri/tests/pass/function_pointers.rs index 8e58692a0c7..36679b7180a 100644 --- a/src/tools/miri/tests/pass/function_pointers.rs +++ b/src/tools/miri/tests/pass/function_pointers.rs @@ -80,7 +80,7 @@ fn main() { // but Miri currently uses a fixed address for monomorphic functions. assert!(return_fn_ptr(i) == i); assert!(return_fn_ptr(i) as unsafe fn() -> i32 == i as fn() -> i32 as unsafe fn() -> i32); - // Miri gives it many different addresses to different reifications of a generic function. + // Miri gives different addresses to different reifications of a generic function. assert!(return_fn_ptr(f) != f); // However, if we only turn `f` into a function pointer and use that pointer, // it is equal to itself. |
