android / android/codelab-android-datastore
There might be errors in the description of `updateShowCompleted` in codelab
- Vorherrschende Sprache
- Kotlin
- Sterne
- 240
- Forks
- 113
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I found two parts of the codelab description that might possibly be errors and report them.
First look at the description in the section on [`Writing data to Proto DataStore`](https://developer.android.com/codelabs/android-proto-datastore#6) in codelab
I'm not sure, but perhaps `userPreferencesStore.updateData()` is correct for the red line in the image, not `dataStore.updateData()`.
##
Second, the sample code in the image above is probably incorrect when the language is not English in codelab.
For example, look at the sample code when the codelab language is Japanese

As well as sample code for the English version,
```
dataStore..updateData { ...
```
The above should be modified as follows
```
userPreferencesStore.updateData { ...
```
Beitragsleitfaden
Rechercherichtung
Beginne mit dem Abschnitt „Writing data to Proto DataStore“ des verlinkten Codelabs und vergleiche die gerenderten Beispiele auf Englisch und Japanisch. Überprüfe den in jedem Snippet gezeigten updateData-Empfänger und stelle anschließend sicher, dass beide Sprachversionen durchgehend die beabsichtigte Store-Referenz verwenden und ohne den doppelten Punkt gerendert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, kotlin
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 55/100