Skip to content

Commit c2c0ffe

Browse files
committed
Update StateBasedText.kt
1 parent 38a31a2 commit c2c0ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/text/StateBasedText.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ fun EditTextFieldState() {
181181
// textFieldState.selection: TextRange(0, 18)
182182
// [END android_compose_state_text_10]
183183

184-
// [END android_compose_state_text_11]
184+
// [START android_compose_state_text_11]
185185
usernameState.setTextAndPlaceCursorAtEnd("I really love Android")
186186
// textFieldState.text : I really love Android
187187
// textFieldState.selection : TextRange(21, 21)
188188
// [END android_compose_state_text_11]
189189

190-
// [END android_compose_state_text_12]
190+
// [START android_compose_state_text_12]
191191
usernameState.clearText()
192192
// textFieldState.text :
193193
// textFieldState.selection : TextRange(0, 0)

0 commit comments

Comments
 (0)