mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 1d328de3ec
			
		
	
	
		1d328de3ec
		
	
	
	
	
		
			
			This swaps things around so that the class that gets used more often has the shorter name.
		
			
				
	
	
		
			26 lines
		
	
	
		
			572 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			572 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![crate_name = "foo"]
 | |
| 
 | |
| // @has 'foo/struct.S1.html'
 | |
| // @snapshot S1_top-doc - '//details[@class="toggle top-doc"]/div[@class="docblock"]'
 | |
| 
 | |
| #[doc = "Hello world!\n\n"]
 | |
| /// Goodbye!
 | |
| #[doc = "  Hello again!\n"]
 | |
| pub struct S1;
 | |
| 
 | |
| // @has 'foo/struct.S2.html'
 | |
| // @snapshot S2_top-doc - '//details[@class="toggle top-doc"]/div[@class="docblock"]'
 | |
| 
 | |
| /// Hello world!
 | |
| ///
 | |
| #[doc = "Goodbye!"]
 | |
| /// Hello again!
 | |
| pub struct S2;
 | |
| 
 | |
| // @has 'foo/struct.S3.html'
 | |
| // @snapshot S3_top-doc - '//details[@class="toggle top-doc"]/div[@class="docblock"]'
 | |
| /** Par 1
 | |
| */ ///
 | |
| /// Par 2
 | |
| pub struct S3;
 |