From 6fa3f0efbb00b1cb4155206144379b380f29380b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Ochagav=C3=ADa?= Date: Fri, 31 May 2019 12:59:59 +0200 Subject: [PATCH] Fix typo --- reference/src/layout/function-pointers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/src/layout/function-pointers.md b/reference/src/layout/function-pointers.md index 71555b00..3188fb05 100644 --- a/reference/src/layout/function-pointers.md +++ b/reference/src/layout/function-pointers.md @@ -26,7 +26,7 @@ or the address of a function. ### Representation The ABI and layout of `(unsafe)? (extern "ABI")? fn(Args...) -> Ret` -is exactly that of the corresonding C type -- +is exactly that of the corresponding C type -- the lack of a null value does not change this. On common platforms, this means that `*const ()` and `fn(Args...) -> Ret` have the same ABI and layout. This is, in fact, guaranteed by POSIX and Windows.