DeveloperAcademy-POSTECH / DeveloperAcademy-POSTECH/swift-style-guide

[오탈자 신고] 클로져-후행 클로저 축약-Bad 경우의 예제코드 오류

Open
#78 0 comments 0 reactions 1 assignee Claimed by @KhoraLee View on GitHub
Dominant language
No language data
Stars
272
Forks
41
PR merge metrics
No merged PRs in 30d

Description

### 이슈 중복 확인

확인했습니다.

### 카테고리

클로져-후행 클로저 축약

### 내용

클로져 항목의 후행 클로저 축약에서 Bad에 해당하는 예제코드에 오류가 있어 신고합니다!
현재는 잘못된 괄호 사용으로 실행할 수 없는 코드로 작성되어 있습니다.
이를 `in` 으로 변경하면 될 것 같습니다!

현재:
``` swift
someFunctionThatTakesAClosure(closure: { (arguInt: Int) -> Void)
// function body goes here
})
```

변경 후:
```swift
someFunctionThatTakesAClosure(closure: { (arguInt: Int) -> Void in
// function body goes here
})
```

추가로 '클로져'와 '클로저'를 하나로 통일해도 좋을 것 같습니다!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.