]> git.lizzy.rs Git - rust.git/commit
Fix playpen links to not all be the same
authorEarl St Sauver <estsauver@gmail.com>
Mon, 12 Jan 2015 09:37:01 +0000 (01:37 -0800)
committerEarl St Sauver <estsauver@gmail.com>
Wed, 14 Jan 2015 06:25:11 +0000 (22:25 -0800)
commit2a320f21d0e5f943b9cd02bb7882531bfb7ef0b9
treedf22d587e1fae73b8e4b5c119b6bf5e5314f1815
parent4bed1e8c0a433f30f85a01cd74d2251c73f590a2
Fix playpen links to not all be the same

Fixes #20732, that all links in some modules point to the same code
examples was reported. The ID's generated for documents in
librustdoc are not all unique, which means the code rendered as
text is not being properly selected.

This change removes the unique id generation and instead changes the
frontend code to grab the correct code sample by it's relative
position in the dom.
src/librustdoc/html/markdown.rs
src/librustdoc/html/static/playpen.js