std::local_data: Fix document code
auto merge of #9457 : klutzy/rust/doc-fix, r=alexcrichton