Skip to content

Commit 7c118ca

Browse files
committed
Rename this section
It seems like there were two paragraphs, but one was about 'static and the other was about something else. I decided to use a more generic term for the section title.
1 parent f36e9d0 commit 7c118ca

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/lifetime-elision.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl<'a> dyn Bar<'a> {}
184184
impl<'a> dyn Bar<'a> + 'a {}
185185
```
186186

187-
## `'static` lifetime elision
187+
## `const` and `static` elision
188188

189189
r[lifetime-elision.item]
190190

@@ -249,3 +249,17 @@ const RESOLVED_STATIC: &dyn Fn(&Foo, &Bar) -> &Baz = &somefunc;
249249
[RFC 1156]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
250250
[static]: items/static-items.md
251251
[trait object]: types/trait-object.md
252+
253+
<script>
254+
(function() {
255+
var fragments = {
256+
"#static-lifetime-elision": "lifetime-elision.html#const-and-static-elision",
257+
};
258+
var target = fragments[window.location.hash];
259+
if (target) {
260+
var url = window.location.toString();
261+
var base = url.substring(0, url.lastIndexOf('/'));
262+
window.location.replace(base + "/" + target);
263+
}
264+
})();
265+
</script>

0 commit comments

Comments
 (0)