Closed AliceABarsse closed 3 years ago
URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-navigation-backstack?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-4%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-navigation-backstack#4
In which task and step of the codelab can this issue be found?
Describe the problem The wrong variable name is used in the following example code in the page:
In your Kotlin code, calling: getQuantityString(R.string.cupcakes, 1, 1) returns the string 1 cupcake getQuantityString(R.string.cupcakes, 6, 6) returns the string 6 cupcakes getQuantityString(R.string.cupcakes, 0, 0) returns the string 0 cupcakes
R.string.cupcakes should actually be R.plurals.cupcakes
R.string.cupcakes
R.plurals.cupcakes
Steps to reproduce? Error in Tutorial text, not in the actual code.
Versions Not relevant.
Additional information Not relevant.
Good catch, thank you! Fixed and will be published soon.
URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-navigation-backstack?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-4%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-navigation-backstack#4
In which task and step of the codelab can this issue be found?
Describe the problem The wrong variable name is used in the following example code in the page:
R.string.cupcakes
should actually beR.plurals.cupcakes
Steps to reproduce? Error in Tutorial text, not in the actual code.
Versions Not relevant.
Additional information Not relevant.