소스 검색

Fix issue with outdated comment. (#4192)

Tim Whitney 2 년 전
부모
커밋
dfcff87e18
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      website/src/docs/core.md

+ 2 - 2
website/src/docs/core.md

@@ -595,9 +595,9 @@ uppy.setState({
 State in Uppy is considered to be immutable. When updating values, make sure not mutate them, but instead create copies. See [Redux docs](http://redux.js.org/docs/recipes/UsingObjectSpreadOperator.html) for more info on this. Here is an example that updates progress for a particular file in state:
 
 ```js
-// We use Object.assign({}, obj) to create a copy of `obj`.
+// We use the spread operator to create a copy of the files object.
 const updatedFiles = { ...uppy.getState().files }
-// We use Object.assign({}, obj, update) to create an altered copy of `obj`.
+// We use the spread operator to create a copy of the files object.
 const updatedFile = {
   ...updatedFiles[fileID],
   progress: {