You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -624,6 +634,10 @@ The generated output (formatted) will look like this:
624
634
*`doctest_attributes` contains computed information about the attributes used on the doctests. For more information about doctest attributes, take a look [here](write-documentation/documentation-tests.html#attributes).
625
635
*`original_code` is the code as written in the source code before rustdoc modifies it.
626
636
*`doctest_code` is the code modified by rustdoc that will be run. If there is a fatal syntax error, this field will not be present.
637
+
*`crate_level` is the crate level code (like attributes or `extern crate`) that will be added at the top-level of the generated doctest.
638
+
*`code` is "naked" doctest without anything from `crate_level` and `wrapper` content.
639
+
*`wrapper` contains extra code that will be added before and after `code`.
640
+
*`returns_result` is a boolean. If `true`, it means that the doctest returns a `Result` type.
627
641
*`name` is the name generated by rustdoc which represents this doctest.
0 commit comments