couchbaselabs / couchbaselabs/mini-hacks

code in swift readme will not compile

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
137
Forks
54
PR merge metrics
No merged PRs in 30d

Description

I'm not sure if its due to Swift 1.2 however in step 12 the below code results in "Cannot assign to the result of this expression"
`rev["check"] = !wasChecked`
I believe `rev.properties["check"] = !wasChecked` is either what was meant to be, or now needs to be.

Also in step 13, when properties is declared it needs to be explicitly declared as a Dictionary or by default its created as NSDictionary and requires casting when passed into `doc.putProperties`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.