Skip to content

Commit b2b4335

Browse files
authored
docs: Fix indent (#338)
1 parent c3d05d2 commit b2b4335

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tutorials/advanced-tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ The main type you will use when declaring action types in reducers is **`Payload
261261
Let's look at a specific reducer as an example:
262262

263263
```ts
264-
setCurrentPage(state, action: PayloadAction<number>) {
265-
state.page = action.payload
266-
},
264+
setCurrentPage(state, action: PayloadAction<number>) {
265+
state.page = action.payload
266+
},
267267
```
268268

269269
We don't have to declare a type for `state`, because `createSlice` already knows that this should be the same type as our `initialState`: the `CurrentDisplayState` type.

0 commit comments

Comments
 (0)