From 7f1994ed9a08eddaff00defb5bdb4c01d30bbedc Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Tue, 14 Jun 2022 18:13:00 +0200 Subject: [PATCH] Little fixes --- diaries/rust/02 - Higher-Lower-Spiel.adoc | 20 +------------------- diaries/rust/03 - Concepts.adoc | 2 +- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/diaries/rust/02 - Higher-Lower-Spiel.adoc b/diaries/rust/02 - Higher-Lower-Spiel.adoc index 19bac9c..6a49700 100644 --- a/diaries/rust/02 - Higher-Lower-Spiel.adoc +++ b/diaries/rust/02 - Higher-Lower-Spiel.adoc @@ -217,25 +217,7 @@ Too big! Number? 45 You win! Number? - -thread '' panicked at 'Please type a number!: ParseIntError { kind: Empty }', src/lib.rs:133:43 -stack backtrace: - 0: rust_begin_unwind - at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5 - 1: core::panicking::panic_fmt - at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14 - 2: core::result::unwrap_failed - at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/result.rs:1616:5 - 3: run_user_code_5 - 4: evcxr::runtime::Runtime::run_loop - 5: evcxr::runtime::runtime_hook - 6: evcxr_jupyter::main -note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. -Segmentation fault. - - - Child process terminated with status: signal: 11 (core dumped) - +... ---- Funktioniert, aber selbst nach dem Erraten passiert nichts und wir diff --git a/diaries/rust/03 - Concepts.adoc b/diaries/rust/03 - Concepts.adoc index 8ee8908..bb13543 100644 --- a/diaries/rust/03 - Concepts.adoc +++ b/diaries/rust/03 - Concepts.adoc @@ -18,7 +18,7 @@ Das Folgende funktioniert also nicht: ---- fn main() { let x = "Hello world!"; - // Das folgende funktioniert ist, weil x nicht mutable ist! + // Das folgende funktioniert, weil x nicht mutable ist! x = "Hello Rust!"; } ----