Merge pull request #12178 from Gyeonghun-Park/develop

Fix typo in ir-breaking-changes.rst
This commit is contained in:
Kamil Śliwak 2021-10-22 21:12:22 +02:00 committed by GitHub
commit 3774955dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 calls through function pointers always have to use an internal dispatch function that uses the ``switch`` statement to select
the right function. 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. 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. This causes a storage write at construction time for internal function pointers in storage.