add protocol constraint, fix typo
Merge pull request #24 from YuAo/master

Add protocol constraint, fix typo