Improved example in the Guide

Fixes https://github.com/rust-lang/rust/issues/15452