Compare commits
	
		
			1 Commits
		
	
	
		
			with-lifet
			...
			no-lifetim
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					3dd76c0dfd | 
@@ -6,7 +6,7 @@ fn main() {
 | 
			
		||||
    println!("The longest string is {result}");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn longest<'a>(a: &'a str, b: &'a str) -> &'a str {
 | 
			
		||||
fn longest(a: &str, b: &str) -> &str {
 | 
			
		||||
    if a.len() > b.len() {
 | 
			
		||||
        a
 | 
			
		||||
    } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user