Skip to content

Commit eb46e0e

Browse files
authored
chore: Fix spelling here and there (#840)
1 parent affd59d commit eb46e0e

17 files changed

Lines changed: 44 additions & 44 deletions

File tree

HOCON.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ For purposes of concatenation, "array" also means "substitution
388388
that resolves to an array" and "object" also means "substitution
389389
that resolves to an object."
390390

391-
Within an field value or array element, if only non-newline
391+
Within a field value or array element, if only non-newline
392392
whitespace separates the end of a first array or object or
393393
substitution from the start of a second array or object or
394394
substitution, the two values are concatenated. Newlines may occur
@@ -840,7 +840,7 @@ because the self reference has to "look back" to an undefined `a`:
840840

841841
a = ${?a}foo
842842

843-
In general, in resolving a substitution the implementation must:
843+
In general, in resolving a substitution, the implementation must:
844844

845845
- lazy-evaluate the substitution target so there's no
846846
"circularity by side effect"
@@ -1301,7 +1301,7 @@ This can use the general "units format" described above; bare
13011301
numbers are taken to be in milliseconds already, while strings are
13021302
parsed as a number plus an optional unit string.
13031303

1304-
The supported unit strings for duration are case sensitive and
1304+
The supported unit strings for duration are case-sensitive and
13051305
must be lowercase. Exactly these strings are supported:
13061306

13071307
- `ns`, `nano`, `nanos`, `nanosecond`, `nanoseconds`
@@ -1321,7 +1321,7 @@ This can use the general "units format" described above; bare
13211321
numbers are taken to be in days, while strings are
13221322
parsed as a number plus an optional unit string.
13231323

1324-
The supported unit strings for period are case sensitive and
1324+
The supported unit strings for period are case-sensitive and
13251325
must be lowercase. Exactly these strings are supported:
13261326

13271327
- `d`, `day`, `days`
@@ -1542,7 +1542,7 @@ It's recommended that HOCON keys always use lowercase, because
15421542
environment variables generally are capitalized. This avoids
15431543
naming collisions between environment variables and configuration
15441544
properties. (While on Windows getenv() is generally not
1545-
case-sensitive, the lookup will be case sensitive all the way
1545+
case-sensitive, the lookup will be case-sensitive all the way
15461546
until the env variable fallback lookup is reached).
15471547

15481548
See also the notes below on Windows and case sensitivity.
@@ -1597,7 +1597,7 @@ Differences include but are probably not limited to:
15971597

15981598
## Note on Windows and case sensitivity of environment variables
15991599

1600-
HOCON's lookup of environment variable values is always case sensitive, but
1600+
HOCON's lookup of environment variable values is always case-sensitive, but
16011601
Linux and Windows differ in their handling of case.
16021602

16031603
Linux allows one to define multiple environment variables with the same
@@ -1608,18 +1608,18 @@ is straightforward; ie just make sure you define all your vars with the required
16081608
Windows is more confusing. Windows environment variables names may contain a
16091609
mix of upper and lowercase characters, eg "Path", however Windows does not
16101610
allow one to define multiple instances of the same name but differing in case.
1611-
Whilst accessing env vars in Windows is case insensitive, accessing env vars in
1612-
HOCON is case sensitive.
1611+
Whilst accessing env vars in Windows is case-insensitive, accessing env vars in
1612+
HOCON is case-sensitive.
16131613
So if you know that you HOCON needs "PATH" then you must ensure that
16141614
the variable is defined as "PATH" rather than some other name such as
16151615
"Path" or "path".
16161616
However, Windows does not allow us to change the case of an existing env var; we can't
1617-
simply redefine the var with an upper case name.
1617+
simply redefine the var with an uppercase name.
16181618
The only way to ensure that your environment variables have the desired case
16191619
is to first undefine all the env vars that you will depend on then redefine
16201620
them with the required case.
16211621

1622-
For example, the the ambient environment might have this definition ...
1622+
For example, the ambient environment might have this definition ...
16231623

16241624
```
16251625
set Path=A;B;C

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ Report bugs to the GitHub issue tracker. Send patches as pull
134134
requests on GitHub.
135135

136136
Before we can accept pull requests, you will need to agree to the
137-
Typesafe Contributor License Agreement online, using your GitHub
137+
Akka Contributor License Agreement online, using your GitHub
138138
account - it takes 30 seconds. You can do this at
139-
https://www.lightbend.com/contribute/cla
139+
https://contribute.akka.io/contribute/cla
140140

141141
Please see
142142
[CONTRIBUTING](https://github.com/lightbend/config/blob/main/CONTRIBUTING.md)
@@ -827,7 +827,7 @@ that use Java 8 types will need to be removed.
827827
The three file formats each have advantages.
828828

829829
- Java `.properties`:
830-
- Java standard, built in to JVM
830+
- Java standard, built into JVM
831831
- Supported by many tools such as IDEs
832832
- JSON:
833833
- easy to generate programmatically

config/src/main/java/com/typesafe/config/ConfigFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ public static java.util.Optional<Config> parseApplicationReplacement() {
11091109

11101110
/**
11111111
* Like {@link #parseApplicationReplacement()} but allows you to specify a class loader
1112-
* ti yse rather than the current context class loader.
1112+
* rather than using the current context class loader.
11131113
*
11141114
* @since 1.4.1
11151115
*

config/src/main/java/com/typesafe/config/ConfigLoadingStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* calls {@link ConfigFactory#load}.
66
*
77
* Usually you don't have to implement this interface but it may be required
8-
* when you fixing a improperly implemented library with unavailable source code.
8+
* when you fix an improperly implemented library with unavailable source code.
99
*
1010
* You have to define VM property {@code config.strategy} to replace default strategy with your own.
1111
*/

config/src/main/java/com/typesafe/config/ConfigValueFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ private ConfigValueFactory() {
3838
*
3939
* <p>
4040
* The originDescription will be used to set the origin() field on the
41-
* ConfigValue. It should normally be the name of the file the values came
42-
* from, or something short describing the value such as "default settings".
43-
* The originDescription is prefixed to error messages so users can tell
44-
* where problematic values are coming from.
41+
* ConfigValue. It should normally be the name of the file from which the
42+
* values came, or something short describing the value such as "default
43+
* settings". The originDescription is prefixed to error messages so users
44+
* can tell where problematic values are coming from.
4545
*
4646
* <p>
4747
* Supplying the result of ConfigValue.unwrapped() to this function is

config/src/main/java/com/typesafe/config/Optional.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.lang.annotation.RetentionPolicy;
66

77
/**
8-
* Allows an config property to be {@code null}.
8+
* Allows a config property to be {@code null}.
99
*/
1010
@Documented
1111
@Retention(RetentionPolicy.RUNTIME)

config/src/main/java/com/typesafe/config/impl/ConfigDelayedMergeObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ protected AbstractConfigValue attemptPeekWithPartialResolve(String key) {
262262
AbstractConfigValue v = objectLayer.attemptPeekWithPartialResolve(key);
263263
if (v != null) {
264264
if (v.ignoresFallbacks()) {
265-
// we know we won't need to merge anything in to this
265+
// we know we won't need to merge anything into this
266266
// value
267267
return v;
268268
} else {

config/src/main/java/com/typesafe/config/impl/Tokens.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.typesafe.config.ConfigOrigin;
1010
import com.typesafe.config.ConfigValueType;
1111

12-
/* FIXME the way the subclasses of Token are private with static isFoo and accessors is kind of ridiculous. */
12+
/* FIXME the way subclasses of Token are private with static isFoo and accessors is kind of ridiculous. */
1313
final class Tokens {
1414
static private class Value extends Token {
1515

config/src/test/resources/test04.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ akka {
112112
# available: "transaction-log" and "data-grid"
113113
# default is "transaction-log"
114114

115-
# strategy = "write-through" # guaranteees for replication
115+
# strategy = "write-through" # guarantees for replication
116116
# available: "write-through" and "write-behind"
117117
# default is "write-through"
118118

@@ -228,7 +228,7 @@ akka {
228228
secure-cookie = "" # Generate your own with '$AKKA_HOME/scripts/generate_config_with_secure_cookie.sh'
229229
# or using 'akka.util.Crypt.generateSecureCookie'
230230

231-
remote-daemon-ack-timeout = 30 # Timeout for ACK of cluster operations, lik checking actor out etc.
231+
remote-daemon-ack-timeout = 30 # Timeout for ACK of cluster operations, like checking actor out etc.
232232

233233
use-passive-connections = on # Reuse inbound connections for outbound messages
234234

@@ -279,7 +279,7 @@ akka {
279279
ensemble-size = 3
280280
quorum-size = 2
281281
snapshot-frequency = 1000 # The number of messages that should be logged between every actor snapshot
282-
timeout = 30 # Timeout for asyncronous (write-behind) operations
282+
timeout = 30 # Timeout for asynchronous (write-behind) operations
283283
}
284284
}
285285

config/src/test/resources/test05.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ application.mode=dev
1616

1717
# Secret key
1818
# ~~~~~
19-
# The secret key is used to secure cryptographics functions
19+
# The secret key is used to secure cryptographic functions
2020
# If you deploy your application to several instances be sure to use the same key !
2121
application.secret=s1kwayg211q9v4387pvarbmyqnht7hrl54d34lsz0yh9btb117br293a25trz31o
2222

@@ -46,7 +46,7 @@ module.secure=${?play.path}/modules/secure
4646
# If you need to change the HTTP port, uncomment this (default is set to 9000)
4747
# http.port=9000
4848
#
49-
# By default the server listen for HTTP on the wilcard address.
49+
# By default the server listen for HTTP on the wildcard address.
5050
# You can restrict this.
5151
# http.address=127.0.0.1
5252

@@ -111,7 +111,7 @@ jpa.ddl=update
111111

112112
# Memcached configuration
113113
# ~~~~~
114-
# Enable memcached if needed. Otherwise a local cache is used.
114+
# Enable memcached if needed. Otherwise, a local cache is used.
115115
# memcached=enabled
116116
#
117117
# Specify memcached host (default to 127.0.0.1:11211)
@@ -135,7 +135,7 @@ mail.smtp=mock
135135
# Execution pool
136136
# ~~~~~
137137
# Default to 1 thread in DEV mode or nb processors + 1 threads in PROD mode.
138-
# Try to keep a low as possible. 1 thread will serialize all requests (very usefull for debugging purpose)
138+
# Try to keep a low as possible. 1 thread will serialize all requests (very useful for debugging purpose)
139139
# play.pool=3
140140

141141
# Open file from errors pages

0 commit comments

Comments
 (0)