@@ -221,15 +221,15 @@ If you add a main function that calls `diverges()` and run it, you’ll get
221
221
some output that looks like this:
222
222
223
223
``` text
224
- thread ‘< main> ’ panicked at ‘This function never returns!’, hello.rs:2
224
+ thread ‘main’ panicked at ‘This function never returns!’, hello.rs:2
225
225
```
226
226
227
227
If you want more information, you can get a backtrace by setting the
228
228
` RUST_BACKTRACE ` environment variable:
229
229
230
230
``` text
231
231
$ RUST_BACKTRACE=1 ./diverges
232
- thread '< main> ' panicked at 'This function never returns!', hello.rs:2
232
+ thread 'main' panicked at 'This function never returns!', hello.rs:2
233
233
stack backtrace:
234
234
1: 0x7f402773a829 - sys::backtrace::write::h0942de78b6c02817K8r
235
235
2: 0x7f402773d7fc - panicking::on_panic::h3f23f9d0b5f4c91bu9w
@@ -255,7 +255,7 @@ Any other value(even no value at all) turns on backtrace.
255
255
$ export RUST_BACKTRACE=1
256
256
...
257
257
$ RUST_BACKTRACE=0 ./diverges
258
- thread '< main> ' panicked at 'This function never returns!', hello.rs:2
258
+ thread 'main' panicked at 'This function never returns!', hello.rs:2
259
259
note: Run with `RUST_BACKTRACE=1` for a backtrace.
260
260
```
261
261
@@ -264,7 +264,7 @@ note: Run with `RUST_BACKTRACE=1` for a backtrace.
264
264
``` text
265
265
$ RUST_BACKTRACE=1 cargo run
266
266
Running `target/debug/diverges`
267
- thread '< main> ' panicked at 'This function never returns!', hello.rs:2
267
+ thread 'main' panicked at 'This function never returns!', hello.rs:2
268
268
stack backtrace:
269
269
1: 0x7f402773a829 - sys::backtrace::write::h0942de78b6c02817K8r
270
270
2: 0x7f402773d7fc - panicking::on_panic::h3f23f9d0b5f4c91bu9w
0 commit comments