]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #26202 - nham:revise_E0072, r=alexcrichton
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 11 Jun 2015 07:20:54 +0000 (12:50 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 11 Jun 2015 07:20:54 +0000 (12:50 +0530)
Converts the size calculation in the explanation from a fenced code block to an indented one. I think it looks better when not rendered, and is the same rendered.

src/librustc_typeck/diagnostics.rs

index 0f6d5f249df7d46ceb67416f8159b0a393e06ab3..2d9f42db593d70efaaa8030e16c940cc8c060437 100644 (file)
@@ -586,11 +586,9 @@ struct ListNode {
 This type cannot have a well-defined size, because it needs to be arbitrarily
 large (since we would be able to nest `ListNode`s to any depth). Specifically,
 
-```
-size of ListNode = 1 byte for head
-                 + 1 byte for the discriminant of the Option
-                 + size of ListNode
-```
+    size of `ListNode` = 1 byte for `head`
+                       + 1 byte for the discriminant of the `Option`
+                       + size of `ListNode`
 
 One way to fix this is by wrapping `ListNode` in a `Box`, like so: