Skip to content

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

@anjiniii

Description

@anjiniii

이슈 중복 확인

확인했습니다.

카테고리

클로져-후행 클로저 축약

내용

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

현재:

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

변경 후:

someFunctionThatTakesAClosure(closure: { (arguInt: Int) -> Void in
    // function body goes here
})

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions