mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 08:36:17 +00:00 
			
		
		
		
	[Documentation] Fix Clay_String definition in README.md file. (#374)
This commit is contained in:
		
							parent
							
								
									5391a259f3
								
							
						
					
					
						commit
						f88f0517f7
					
				
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							| 
						 | 
					@ -1787,7 +1787,8 @@ Note: when using the debug tools, their internal colors are represented as 0-255
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```C
 | 
					```C
 | 
				
			||||||
typedef struct {
 | 
					typedef struct {
 | 
				
			||||||
    int length;
 | 
					    bool isStaticallyAllocated;
 | 
				
			||||||
 | 
					    int32_t length;
 | 
				
			||||||
    const char *chars;
 | 
					    const char *chars;
 | 
				
			||||||
} Clay_String;
 | 
					} Clay_String;
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
| 
						 | 
					@ -1796,7 +1797,14 @@ typedef struct {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Fields**
 | 
					**Fields**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**`.length`** - `int`
 | 
					**`.isStaticallyAllocated`** - `bool`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Whether or not the string is statically allocated, or in other words, whether
 | 
				
			||||||
 | 
					or not it lives for the entire lifetime of the program.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					**`.length`** - `int32_t`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The number of characters in the string, _not including an optional null terminator._
 | 
					The number of characters in the string, _not including an optional null terminator._
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue