amethyst / amethyst/rustrogueliketutorial
Section 1.9 missing some rename mentions
- Vorherrschende Sprache
- Rust
- Sterne
- 970
- Forks
- 166
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Some renames which were done in the source code were not mentioned in the book which causes confusion as the code snippets don't match up with the code from the previous chapter.
Specifically, the following renames are not mentioned in the book.
- structure `WantsToDrinkPotion` to `WantsToUseItem`
- field `potion` to `item` of the above structure
- variable `wants_drink` to `useitem` in the `run` method of `PotionUseSystem`
Also, the renames of all instances where the above were used in `inventory_system.rs` and `main.rs`.
Thank you for this amazing book !
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit Abschnitt 1.9 des Buches und vergleiche dessen Snippets mit den im Issue aufgeführten Umbenennungen. Aktualisiere die Erläuterung zu WantsToUseItem, seinem Feld item, useitem in PotionUseSystem::run sowie den zugehörigen Verwendungen in inventory_system.rs und main.rs; fertig ist es, wenn das Buch mit den Quellnamen übereinstimmt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 55/100