Skip to content

Commit e87f54b

Browse files
committed
Fix name of lang item
1 parent 880b7b1 commit e87f54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/panic-implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn rust_begin_panic(info: &PanicInfo<'_>) -> ! {
4646
The special `panic_handler` attribute is resolved via `src/librustc/middle/lang_items`.
4747
The `extract` function converts the `panic_handler` attribute to a `panic_impl` lang item.
4848

49-
Now, we have a matching `panic_impl` lang item in the `libstd`. This function goes
49+
Now, we have a matching `panic_handler` lang item in the `libstd`. This function goes
5050
through the same process as the `extern { fn panic_impl }` definition in `libcore`, ending
5151
up with a symbol name of `rust_begin_unwind`. At link time, the symbol refernce in `libcore`
5252
will be resolved to the definition of `libstd` (the function called `rust_begin_panic` in the

0 commit comments

Comments
 (0)