1
Fork 0

s/panic_fmt/panic_impl/g in docs

This commit is contained in:
Jorge Aparicio 2018-04-30 10:57:11 +02:00
parent e44ad61a2d
commit 63f18e108a
4 changed files with 22 additions and 21 deletions

View file

@ -637,8 +637,8 @@ Erroneous code example:
```compile_fail,E0152
#![feature(lang_items)]
#[lang = "panic_fmt"]
struct Foo; // error: duplicate lang item found: `panic_fmt`
#[lang = "panic_impl"]
struct Foo; // error: duplicate lang item found: `panic_impl`
```
Lang items are already implemented in the standard library. Unless you are
@ -824,7 +824,7 @@ A list of available external lang items is available in
#![feature(lang_items)]
extern "C" {
#[lang = "panic_fmt"] // ok!
#[lang = "panic_impl"] // ok!
fn cake();
}
```