Not everything can be statically enforced, especially when it comes to style. However, if you only show the intended syntax in the documentation, there will be few people to try the other way around.