Improving misleading example. Do not emit(foo, doc)!