Fixed a syntax error in example code.

Example code for `as_declarative()` has omitted a colon.