diff --git a/src/librustdoc/html/static/playpen.js b/src/librustdoc/html/static/playpen.js
index b7a5f202629fe..ef8bdf5e2ce97 100644
--- a/src/librustdoc/html/static/playpen.js
+++ b/src/librustdoc/html/static/playpen.js
@@ -17,7 +17,7 @@ document.addEventListener('DOMContentLoaded', function() {
}
var featureRegexp = new RegExp('^\s*#!\\[feature\\(\.*?\\)\\]');
- var elements = document.querySelectorAll('pre.rust');
+ var elements = document.querySelectorAll('pre.rust-example-rendered');
Array.prototype.forEach.call(elements, function(el) {
el.onmouseover = function(e) {