Fix code sample in documentation