@@ -221,15 +221,15 @@ If you add a main function that calls `diverges()` and run it, you’ll get
221221some output that looks like this:
222222
223223``` 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
225225```
226226
227227If you want more information, you can get a backtrace by setting the
228228` RUST_BACKTRACE ` environment variable:
229229
230230``` text
231231$ 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
233233stack backtrace:
234234 1: 0x7f402773a829 - sys::backtrace::write::h0942de78b6c02817K8r
235235 2: 0x7f402773d7fc - panicking::on_panic::h3f23f9d0b5f4c91bu9w
@@ -255,7 +255,7 @@ Any other value(even no value at all) turns on backtrace.
255255$ export RUST_BACKTRACE=1
256256...
257257$ 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
259259note: Run with `RUST_BACKTRACE=1` for a backtrace.
260260```
261261
@@ -264,7 +264,7 @@ note: Run with `RUST_BACKTRACE=1` for a backtrace.
264264``` text
265265$ RUST_BACKTRACE=1 cargo run
266266 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
268268stack backtrace:
269269 1: 0x7f402773a829 - sys::backtrace::write::h0942de78b6c02817K8r
270270 2: 0x7f402773d7fc - panicking::on_panic::h3f23f9d0b5f4c91bu9w
0 commit comments