Rollup merge of #26967 - tsurai:master, r=steveklabnik

The very first code fragment off every struct and trait documentation page generates wrong playground code. This pull request adjusts ```playpen.js``` to only create a link for real examples.

Documentation:
```rust
pub struct String {
    // some fields omitted
}
```

Playground:
```rust
Struct std::String
            
                [−]
            
        [src]
```

r? @steveklabnik
This commit is contained in:
Manish Goregaokar 2015-07-12 18:35:54 +05:30
commit 1cf7b1e938

View File

@ -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) {