This commit is contained in:
Seppel3210 2021-09-13 14:25:09 +02:00 committed by GitHub
commit 3c457af3e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@ Here's an example of what can be achieved with Rost:
```rust
rost::rost! {
benutze std::collections::Wörterbuch als Wöbu;
benutze std::sammlungen::Wörterbuch als Wöbu;
eigenschaft SchlüsselWert {
funktion schreibe(&selbst, schlsl: Zeichenkette, wert: Zeichenkette);

View file

@ -1,5 +1,5 @@
rost::rost! {
benutze std::collections::Wörterbuch als Wöbu;
benutze std::sammlungen::Wörterbuch als Wöbu;
eigenschaft SchlüsselWert {
funktion schreibe(&selbst, schlsl: Zeichenkette, wert: Zeichenkette);

View file

@ -15,6 +15,7 @@ fn replace_ident(ident: Ident) -> Option<TokenTree> {
"Nichts" => "None",
"Ergebnis" => "Result",
"Selbst" => "Self",
"sammlungen" => "collections",
"ausgabe" => "println",
"abbruch" => "break",
"asynchron" => "async",