From 921d04451b823bc59f53b18be3476057f7a19c6b Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Fri, 22 Oct 2021 10:00:26 +0900 Subject: [PATCH] Fix typo in ir-breaking-changes.rst --- docs/ir/ir-breaking-changes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ir/ir-breaking-changes.rst b/docs/ir/ir-breaking-changes.rst index 8afbc58c3..fb971410a 100644 --- a/docs/ir/ir-breaking-changes.rst +++ b/docs/ir/ir-breaking-changes.rst @@ -268,7 +268,7 @@ In the new code generator, function pointers use the AST IDs of the functions as calls through function pointers always have to use an internal dispatch function that uses the ``switch`` statement to select the right function. -The ID ``0`` is reserved for uninitialized function pointers which then cause a panic in the disptach function when called. +The ID ``0`` is reserved for uninitialized function pointers which then cause a panic in the dispatch function when called. In the old code generator, internal function pointers are initialized with a special function that always causes a panic. This causes a storage write at construction time for internal function pointers in storage.