diff --git a/README.md b/README.md index 14be1f0..2b02d3b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ class MyViewController: UIViewController { super.viewDidLoad() self.view.addSubview(box) - box.snp_makeConstraints { (make) -> Void in + box.snp_makeConstraints { make in make.width.height.equalTo(50) make.center.equalTo(self.view) }