1
Fork 0

rustdoc: nitpicks & cleanup

This commit is contained in:
Adrien Tétar 2013-10-14 21:32:12 +02:00
parent 3995495c4a
commit 694b624305
3 changed files with 23 additions and 431 deletions

View file

@ -27,8 +27,8 @@ pub struct Page<'self> {
pub fn render<T: fmt::Default, S: fmt::Default>(
dst: &mut io::Writer, layout: &Layout, page: &Page, sidebar: &S, t: &T)
{
write!(dst, "
<!DOCTYPE html>
write!(dst,
"<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\" />
@ -38,15 +38,13 @@ pub fn render<T: fmt::Default, S: fmt::Default>(
rel='stylesheet' type='text/css'>
<link rel=\"stylesheet\" type=\"text/css\" href=\"{root_path}{crate}/main.css\">
{favicon, select, none{} other{
<link rel=\"icon\" href=\"#\" sizes=\"16x16\"
type=\"image/vnd.microsoft.icon\" />}}
{favicon, select, none{} other{<link rel=\"shortcut icon\" href=\"#\" />}}
</head>
<body>
<!--[if lte IE 8]>
<div class=\"warning\">
This old browser is unsupported and will most likely display funky
things
things.
</div>
<![endif]-->