about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-11 12:50:54 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-11 12:50:54 +0530
commite50675d549edfcb49f712ee3915155cf1cc8f1a2 (patch)
tree04a77724ece040f4bf07290d8c745a9cc35a7267
parentcf3e79d558f3c482348bb83263d4ac68d7172cd7 (diff)
parenta297651607a884a134d4a38b4044ffbf472c54ce (diff)
downloadrust-e50675d549edfcb49f712ee3915155cf1cc8f1a2.tar.gz
rust-e50675d549edfcb49f712ee3915155cf1cc8f1a2.zip
Rollup merge of #26202 - nham:revise_E0072, r=alexcrichton
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.
-rw-r--r--src/librustc_typeck/diagnostics.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 0f6d5f249df..2d9f42db593 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -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: