s/panic_fmt/panic_impl/g in docs
This commit is contained in:
parent
e44ad61a2d
commit
63f18e108a
4 changed files with 22 additions and 21 deletions
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue