about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Pool <mbp@sourcefrog.net>2015-11-30 07:42:14 -0800
committerMartin Pool <mbp@sourcefrog.net>2015-11-30 07:42:14 -0800
commit4a63d9fa2c21f55bc6f608f80abba028e0ddc741 (patch)
tree35527d88d891075a38fcf6b20deecc6445de0065
parentfd2626cc3f5c3652b5a9b4d3b7f850ff2e8e8590 (diff)
downloadrust-4a63d9fa2c21f55bc6f608f80abba028e0ddc741.tar.gz
rust-4a63d9fa2c21f55bc6f608f80abba028e0ddc741.zip
Remove broken explicit coercion example
-rw-r--r--src/doc/book/casting-between-types.md7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/doc/book/casting-between-types.md b/src/doc/book/casting-between-types.md
index e2b114b7e54..2339fe60bf0 100644
--- a/src/doc/book/casting-between-types.md
+++ b/src/doc/book/casting-between-types.md
@@ -49,13 +49,6 @@ expression, `e as U2` is not necessarily so (in fact it will only be valid if
 
 A cast `e as U` is valid if `e` has type `T` and `T` *coerces* to `U`.
 
-For example:
-
-```rust
-let a = "hello";
-let b = a as String;
-```
-
 ## Numeric casts
 
 A cast `e as U` is also valid in any of the following cases: