forked from vieter-v/vieter
				
			Small change to documentation
							parent
							
								
									75dfc5267b
								
							
						
					
					
						commit
						b70be0574e
					
				| 
						 | 
					@ -57,10 +57,10 @@ fn get_env_var(field_name string) ?string {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// load<T> attempts to create the given type from environment variables. For
 | 
					// load<T> attempts to create an object of type T from the given path to a toml
 | 
				
			||||||
// each field, the corresponding env var is its name in uppercase prepended
 | 
					// file & environment variables. For each field, it will select either a value
 | 
				
			||||||
// with the hardcoded prefix. If this one isn't present, it looks for the env
 | 
					// given from an environment variable, a value defined in the config file or a
 | 
				
			||||||
// var with the file_suffix suffix.
 | 
					// configured default if present, in that order.
 | 
				
			||||||
pub fn load<T>(path string) ?T {
 | 
					pub fn load<T>(path string) ?T {
 | 
				
			||||||
	mut res := T{}
 | 
						mut res := T{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue