]> git.lizzy.rs Git - rust.git/commitdiff
TRPL: Tiny incoherence in UFCS example.
authorToni Cárdenas <toni@tcardenas.me>
Tue, 28 Apr 2015 09:10:01 +0000 (11:10 +0200)
committerToni Cárdenas <toni@tcardenas.me>
Tue, 28 Apr 2015 09:10:01 +0000 (11:10 +0200)
`Type` should be `Trait` to match the next example line.

r? @steveklabnik

src/doc/trpl/ufcs.md

index 2d5c742ddb8482312a2ee0661f46808b694c8c50..2353c63a606af070be774e1e9bb2ccb5de1142f5 100644 (file)
@@ -89,7 +89,7 @@ not, and so we need to pass an explicit `&b`.
 The form of UFCS we just talked about:
 
 ```rust,ignore
-Type::method(args);
+Trait::method(args);
 ```
 
 Is a short-hand. There’s an expanded form of this that’s needed in some