mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 12:04:43 +00:00 
			
		
		
		
	fix doc tests
This commit is contained in:
		
							parent
							
								
									bd7375a58f
								
							
						
					
					
						commit
						b19ef6b046
					
				
					 37 changed files with 75 additions and 61 deletions
				
			
		|  | @ -11,7 +11,7 @@ | |||
| //! Ideally, we should use a proper "model selection" to directly compare
 | ||||
| //! quadratic and linear models, but that sounds rather complicated:
 | ||||
| //!
 | ||||
| //!     https://stats.stackexchange.com/questions/21844/selecting-best-model-based-on-linear-quadratic-and-cubic-fit-of-data
 | ||||
| //! > https://stats.stackexchange.com/questions/21844/selecting-best-model-based-on-linear-quadratic-and-cubic-fit-of-data
 | ||||
| //!
 | ||||
| //! We might get false positives on a VM, but never false negatives. So, if the
 | ||||
| //! first round fails, we repeat the ordeal three more times and fail only if
 | ||||
|  |  | |||
|  | @ -6,7 +6,8 @@ | |||
| //! Use this to test functionality local to one file.
 | ||||
| //!
 | ||||
| //! Simple Example:
 | ||||
| //! ```
 | ||||
| //!
 | ||||
| //! ```ignore
 | ||||
| //! r#"
 | ||||
| //! fn main() {
 | ||||
| //!     println!("Hello World")
 | ||||
|  | @ -19,7 +20,8 @@ | |||
| //! which is also how to define multiple files in a single test fixture
 | ||||
| //!
 | ||||
| //! Example using two files in the same crate:
 | ||||
| //! ```
 | ||||
| //!
 | ||||
| //! ```ignore
 | ||||
| //! "
 | ||||
| //! //- /main.rs
 | ||||
| //! mod foo;
 | ||||
|  | @ -33,7 +35,8 @@ | |||
| //! ```
 | ||||
| //!
 | ||||
| //! Example using two crates with one file each, with one crate depending on the other:
 | ||||
| //! ```
 | ||||
| //!
 | ||||
| //! ```ignore
 | ||||
| //! r#"
 | ||||
| //! //- /main.rs crate:a deps:b
 | ||||
| //! fn main() {
 | ||||
|  | @ -51,7 +54,8 @@ | |||
| //! for the syntax.
 | ||||
| //!
 | ||||
| //! Example using some available metadata:
 | ||||
| //! ```
 | ||||
| //!
 | ||||
| //! ```ignore
 | ||||
| //! "
 | ||||
| //! //- /lib.rs crate:foo deps:bar,baz cfg:foo=a,bar=b env:OUTDIR=path/to,OTHER=foo
 | ||||
| //! fn insert_source_code_here() {}
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 BenjaminBrienen
						BenjaminBrienen