From f6fd4c4a74b768f05c3dff8e991066e425ebc368 Mon Sep 17 00:00:00 2001 From: veetaha Date: Sun, 10 May 2020 20:52:25 +0300 Subject: Correcy use tree and type args docs --- xtask/src/ast_src.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'xtask') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index e68c77a62..815c5f885 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -1831,14 +1831,13 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { UseTree, } - // TODO: verify example correctness /// Use tree. /// /// ``` /// pub use ❰ foo::❰ * ❱ ❱; /// use ❰ bar as baz ❱; /// use ❰ bruh::bruuh::{ ❰ self ❱, ❰ blin ❱ } ❱; - /// use ❰ { ❰ blin::blen ❱ } ❱ // TODO: clarify if top-level curlies are `UseTree` + /// use ❰ { ❰ blin::blen ❱ } ❱ /// ``` /// /// [Reference](https://doc.rust-lang.org/reference/items/use-declarations.html) @@ -1929,11 +1928,10 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { T![::], T![crate], T![self], T![super], T![<], NameRef, TypeArgList, ParamList, RetType, PathType, T![>] } - // TODO: verify the example /// List of type arguments that are passed at generic instantiation site. /// /// ``` - /// use foo ❰ ::<'a, u64, Item = Bar, 42, true> ❱::bar; + /// type _ = Foo ❰ ::<'a, u64, Item = Bar, 42, {true}> ❱::Bar; /// /// Vec❰ :: ❱::(); /// ``` @@ -1953,7 +1951,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { /// Type argument that is passed at generic instantiation site. /// /// ``` - /// use foo::<'a, ❰ u64 ❱, ❰ bool ❱, Item = Bar, 42>::baz; + /// type _ = Foo::<'a, ❰ u64 ❱, ❰ bool ❱, Item = Bar, 42>::Baz; /// ``` /// /// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions) -- cgit v1.2.3