doc: fixed the code example in the Synopsis section. prodded by Pahud Hsieh and smallfish.