mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
chore: fix some typos in comments
Signed-off-by: MarkDaveny <peicuiping@aliyun.com>
This commit is contained in:
parent
14bee0b66e
commit
6698b71f10
|
@ -37,7 +37,7 @@ func mapMostLogicalState(currentState, newState State) State {
|
|||
return newState
|
||||
}
|
||||
|
||||
// GetAll returns information about all batteries in the system.
|
||||
// Get returns information about all batteries in the system.
|
||||
//
|
||||
// If error != nil, it will be either ErrFatal or Errors.
|
||||
// If error is of type Errors, it is guaranteed that length of both returned slices is the same and that i-th error coresponds with i-th battery structure.
|
||||
|
|
|
@ -110,7 +110,7 @@ func TestUnitySegment(t *testing.T) {
|
|||
}
|
||||
|
||||
// 2021.9.20f1 is used in the test cases below as a fake Unity version.
|
||||
// As such, it doesn't exist in the predfined map in unity.go. This
|
||||
// As such, it doesn't exist in the predefined map in unity.go. This
|
||||
// allows us to test the web request portion of the code, which is the
|
||||
// fallback for obtaining a C# version.
|
||||
func TestUnitySegmentCSharpWebRequest(t *testing.T) {
|
||||
|
|
|
@ -2873,7 +2873,7 @@
|
|||
"location": {
|
||||
"type": "string",
|
||||
"title": "location",
|
||||
"description": "Location to use for the API call interpretted only if valid coordinates aren't given. Formatted as <City>,<STATE>,<COUNTRY_CODE>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes.",
|
||||
"description": "Location to use for the API call interpreted only if valid coordinates aren't given. Formatted as <City>,<STATE>,<COUNTRY_CODE>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes.",
|
||||
"default": "De Bilt,NL"
|
||||
},
|
||||
"latitude" : {
|
||||
|
|
|
@ -186,7 +186,7 @@ Local changes use the following syntax:
|
|||
| Name | Type | Description |
|
||||
| ------------ | ----------- | -------------------------------------- |
|
||||
| `.Author` | `User` | the author of the commit (see below) |
|
||||
| `.Committer` | `User` | the comitter of the commit (see below) |
|
||||
| `.Committer` | `User` | the committer of the commit (see below) |
|
||||
| `.Subject` | `string` | the commit subject |
|
||||
| `.Timestamp` | `time.Time` | the commit timestamp |
|
||||
| `.Sha` | `string` | the commit SHA1 |
|
||||
|
|
|
@ -42,7 +42,7 @@ import Config from "@site/src/components/Config.js";
|
|||
| `api_key` | `string` | `.` | Your API key from [Open Weather Map][owm]. Can also be set using the `POSH_OWM_API_KEY` environment variable. |
|
||||
| `latitude` | `float64` | `91` | The latitude of the requested location, valid between -90 and 90 |
|
||||
| `longitude` | `float64` | `181` | The longitude of the requested location, valid between -180 and 180 |
|
||||
| `location` | `string` | `De Bilt,NL` | The requested location interpretted only if valid coordinates aren't given. Formatted as \<City,STATE,COUNTRY_CODE\>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes |
|
||||
| `location` | `string` | `De Bilt,NL` | The requested location interpreted only if valid coordinates aren't given. Formatted as \<City,STATE,COUNTRY_CODE\>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes |
|
||||
| `units` | `string` | `standard` | Units of measurement. Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit) |
|
||||
| `http_timeout` | `int` | `20` | in milliseconds, the timeout for http request |
|
||||
| `cache_timeout` | `int` | `10` | in minutes, the timeout for request caching. A value of 0 disables the cache. |
|
||||
|
|
Loading…
Reference in a new issue