Fix attributes in the guide

A fix for the issues mentioned in https://github.com/rust-lang/rust/issues/16413