is talking about redeclaration of the variable X but there is no X in the german example code?!
there is one in the english example.
i would like to checkout the source and contribute those small changes everywhere i find minor errors like this.
how can i do this?
fn main() {
let hello_world = "Hello world";
println!("{}", hello_world);
let hello_world = "Hello playground";
println!("{}", hello_world);
}
(Playground )
Schard
January 19, 2026, 7:33am
2
After a few seconds of googling, I found the corresponding repo.
A tour of rust's language features
The error in question is here:
gesetzt. Ändere Codeschnipsel, teste Funktionen, lass deiner Fantasie freien
Lauf!
- title: Variablen
code: >-
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20let%20hello_world%20%3D%20%22Hello%20world%22%3B%0A%20%20%20%20println!(%22%7B%7D%22%2C%20hello_world)%3B%0A%20%20%20%20%0A%20%20%20%20let%20hello_world%20%3D%20%22Hello%20playground%22%3B%0A%20%20%20%20println!(%22%7B%7D%22%2C%20hello_world)%3B%0A%7D
content_html: >-
<p>Variablen werden mit dem Schlüsselwort <code>let</code>
deklariert.</p><p>Im Regelfall sollte man Rust die Entscheidung überlassen,
um welchen Datentypen es sich handelt. In Sonderfällen kann der Typ explizit
angegeben werden.</p><p>Huch, was ist denn bei dem Beispiel los? Die
Variable <code>x</code> wird mehrmals deklariert?</p><p>Das ist kein Fehler
- Rust erlaubt sogenanntes <b>variable shadowing</b> (Variable
überschatten). Bei Neudeklaration "verfällt" die vorige Deklaration und wir
können mit der Variable arbeiten, als ob es sie davor noch nie gegeben
hätte. Der Datentyp darf sich dabei auch ändern.</p><p>Variablennamen werden
ebenfalls in <code>snake_case</code> geschrieben.</p>
- title: Variablenwerte ändern
code: >-
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20let%20hello%20%3D%20%22Hello%22%3B%0A%20%20%20%20let%20mut%20world%20%3D%20%22playground%22%3B%0A%20%20%20%20println!(%22%7B%7D%20%7B%7D%22%2C%20hello%2C%20world)%3B%0A%20%20%20%20%0A%20%20%20%20world%20%3D%20%22world%22%3B%0A%20%20%20%20println!(%22%7B%7D%20%7B%7D%22%2C%20hello%2C%20world)%3B%0A%7D
content_markdown: >
Rust sorgt sich sehr darum, welche Variablen verändert werden können
thank you shard!
your google-fu is superior to mine, for i did not find it at all.
case closed, class dismissed
1 Like
well no.
the repository has all the documentation in it, but the SOURCE CODE seems to be somewhere else?
i think it makes sense to have the same source code on all languages?
kpreid
January 19, 2026, 4:00pm
5
The Rust source code seems to be embedded in the playground URLs in the same file.