mirror of
				https://github.com/roc-lang/roc.git
				synced 2025-11-03 22:13:35 +00:00 
			
		
		
		
	More Str docs improvements
				
					
				
			Noticed a couple more! Signed-off-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
		
							parent
							
								
									752eca37a7
								
							
						
					
					
						commit
						e7d80358f4
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1338,7 +1338,7 @@ drop_suffix = |haystack, suffix|
 | 
			
		|||
##
 | 
			
		||||
## This function is useful for things like [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
 | 
			
		||||
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
 | 
			
		||||
## where you know in advance that you're dealing with a hardcoded string containing only ASCII characters.
 | 
			
		||||
## where you know in advance that you're dealing with a string containing only ASCII characters.
 | 
			
		||||
## It has better performance than lowercasing operations which take Unicode into account.
 | 
			
		||||
##
 | 
			
		||||
## That said, strings received from user input can always contain
 | 
			
		||||
| 
						 | 
				
			
			@ -1365,7 +1365,7 @@ expect Str.with_ascii_lowercased("CAFÉ") == "cafÉ"
 | 
			
		|||
## This function is useful for things like
 | 
			
		||||
## [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
 | 
			
		||||
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
 | 
			
		||||
## where you know in advance that you're dealing with a hardcoded string containing only ASCII characters.
 | 
			
		||||
## where you know in advance that you're dealing with a string containing only ASCII characters.
 | 
			
		||||
## It has better performance than lowercasing operations which take Unicode into account.
 | 
			
		||||
##
 | 
			
		||||
## That said, strings received from user input can always contain
 | 
			
		||||
| 
						 | 
				
			
			@ -1401,7 +1401,7 @@ expect Str.with_ascii_uppercased("café") == "CAFé"
 | 
			
		|||
##
 | 
			
		||||
## This function is useful for things like [command-line options](https://en.wikipedia.org/wiki/Command-line_interface#Command-line_option)
 | 
			
		||||
## and [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
 | 
			
		||||
## know in advance that you're dealing with a hardcoded string containing only ASCII characters.
 | 
			
		||||
## where you know in advance that you're dealing with a string containing only ASCII characters.
 | 
			
		||||
## It has better performance than lowercasing operations which take Unicode into account.
 | 
			
		||||
##
 | 
			
		||||
## That said, strings received from user input can always contain
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue