mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	rust: fix datatype in docs for module macro arguments
				
					
				
			Remove the mention of byte array as datatype for `module` macro arguments since the arguments are defined as string, and `alias` is a string array. Signed-off-by: Aswin Unnikrishnan <aswinunni01@gmail.com> Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20240512112324.8514-2-aswinunni01@gmail.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
		
							parent
							
								
									67f9c312b0
								
							
						
					
					
						commit
						63249a070e
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -58,11 +58,11 @@
 | 
				
			||||||
///
 | 
					///
 | 
				
			||||||
/// # Supported argument types
 | 
					/// # Supported argument types
 | 
				
			||||||
///   - `type`: type which implements the [`Module`] trait (required).
 | 
					///   - `type`: type which implements the [`Module`] trait (required).
 | 
				
			||||||
///   - `name`: byte array of the name of the kernel module (required).
 | 
					///   - `name`: ASCII string literal of the name of the kernel module (required).
 | 
				
			||||||
///   - `author`: byte array of the author of the kernel module.
 | 
					///   - `author`: string literal of the author of the kernel module.
 | 
				
			||||||
///   - `description`: byte array of the description of the kernel module.
 | 
					///   - `description`: string literal of the description of the kernel module.
 | 
				
			||||||
///   - `license`: byte array of the license of the kernel module (required).
 | 
					///   - `license`: ASCII string literal of the license of the kernel module (required).
 | 
				
			||||||
///   - `alias`: byte array of alias name of the kernel module.
 | 
					///   - `alias`: array of ASCII string literals of the alias names of the kernel module.
 | 
				
			||||||
#[proc_macro]
 | 
					#[proc_macro]
 | 
				
			||||||
pub fn module(ts: TokenStream) -> TokenStream {
 | 
					pub fn module(ts: TokenStream) -> TokenStream {
 | 
				
			||||||
    module::module(ts)
 | 
					    module::module(ts)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue