Skip to content

Commit 5f89ad2

Browse files
authored
Fix typos (#1194)
1 parent 45282c4 commit 5f89ad2

File tree

12 files changed

+30
-30
lines changed

12 files changed

+30
-30
lines changed

.github/workflows/binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
path: nimble-${{ matrix.target.name }}.tar.gz
8080

8181
create-github-release:
82-
name: Create Github Release
82+
name: Create GitHub Release
8383
needs: [build]
8484
runs-on: ubuntu-latest
8585
permissions:

changelog.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ development and test workflows.
153153
- CTRL-C is now handled correctly in interactive prompts.
154154
- Fixed issue where empty package list led to error.
155155
- Fixed issue where file:// was prepended incorrectly.
156-
- Fixed miscellaneous issues in version parsing, Github auth and briefClone.
156+
- Fixed miscellaneous issues in version parsing, GitHub auth and briefClone.
157157
- Miscellaneous cleanup of deprecated procs.
158158

159159
----
@@ -347,7 +347,7 @@ This release includes multiple bug fixes.
347347
* Reverted patch that breaks binary stubs in Git Bash on Windows.
348348
* The ``nimscriptapi.nim`` file is now statically compiled into the binary.
349349
This should fix the "could not find nimscriptapi.nim" errors. The file can
350-
still be overriden by placing a file named ``nimscriptapi.nim`` inside a
350+
still be overridden by placing a file named ``nimscriptapi.nim`` inside a
351351
``nimblepkg`` directory that is placed alongside the Nimble binary, or
352352
by a ``nimscriptapi.nim`` file inside ``~/.nimble/pkgs/nimble-ver/nimblepkg/``.
353353
For more information see the

nimble.zsh-completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _nimble() {
1717
'(-d --depsOnly)'{-d,--depsOnly}'[Install only dependencies]'
1818

1919
if [ $#line -eq 0 ]; then
20-
# if the command line is empty and "nimble tasks" is successfull, add custom tasks
20+
# if the command line is empty and "nimble tasks" is successful, add custom tasks
2121
tasks=$(nimble tasks)
2222
if [ $? -eq 0 ]; then
2323
compadd - $(echo $tasks | cut -f1 -d" " | tr '\n' ' ')

readme.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ See the [Creating Packages](#creating-packages) section for more info on this.
222222
Dependencies required for developing or testing a project can be installed by
223223
passing `--depsOnly` without specifying a package name. Nimble will then install
224224
any missing dependencies listed in the package's ``package.nimble`` file in the
225-
current working directoy. Note that dependencies will be installed globally.
225+
current working directory. Note that dependencies will be installed globally.
226226

227227
For example to install the dependencies for a Nimble project ``myPackage``:
228228

@@ -1097,7 +1097,7 @@ Nimble includes a ``publish`` command which does this for you automatically.
10971097
package*, Nimble will build the files specified and install them appropriately.
10981098
* ``namedBin`` - A list of name:value files which should be built with specified
10991099
name, no file extension required. This option turns your package into a *binary
1100-
package*, Nimble will build the files specified and install them approriately.
1100+
package*, Nimble will build the files specified and install them appropriately.
11011101
`namedBin` entries override duplicates in `bin`.
11021102
* ``backend`` - Specifies the backend which will be used to build the files
11031103
listed in ``bin``. Possible values include: ``c``, ``cc``, ``cpp``, ``objc``,

src/nimble.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ proc processFreeDependencies(pkgInfo: PackageInfo,
159159

160160
# We add the reverse deps to the JSON file here because we don't want
161161
# them added if the above errorenous condition occurs
162-
# (unsatisfiable dependendencies).
162+
# (unsatisfiable dependencies).
163163
# N.B. NimbleData is saved in installFromDir.
164164
for i in reverseDependencies:
165165
addRevDep(options.nimbleData, i, pkgInfo)
@@ -1688,10 +1688,10 @@ proc lock(options: Options) =
16881688

16891689
pkgInfo.validateDevelopDependenciesVersionRanges(baseDeps, options)
16901690

1691-
# We need to seperate the graph into seperate tasks later
1691+
# We need to separate the graph into separate tasks later
16921692
var
16931693
errors = validateDevModeDepsWorkingCopiesBeforeLock(pkgInfo, options)
1694-
taskDepNames: Table[string, HashSet[string]] # We need to seperate the graph into seperate tasks later
1694+
taskDepNames: Table[string, HashSet[string]] # We need to separate the graph into separate tasks later
16951695
allDeps = baseDeps.toHashSet
16961696
lockDeps: AllLockFileDeps
16971697

src/nimblepkg/lockfile.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ proc writeLockFile*(fileName: string, packages: AllLockFileDeps) =
3131
$lfjkVersion: %lockFileVersion,
3232
$lfjkPackages: %packages[noTask]
3333
}
34-
# Store task graph seperate
34+
# Store task graph separate
3535
mainJsonNode[$lfjkTasks] = newJObject()
3636
for task, deps in packages:
3737
if task != noTask:

src/nimblepkg/options.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Nimble Options:
242242
--useSystemNim Use system nim and ignore nim from the lock
243243
file if any
244244
245-
For more information read the Github readme:
245+
For more information read the GitHub readme:
246246
https://github.com/nim-lang/nimble#readme
247247
"""
248248

@@ -328,7 +328,7 @@ proc parseActionType*(action: string): ActionType =
328328
result = actionCustom
329329

330330
proc initAction*(options: var Options, key: string) =
331-
## Intialises `options.actions` fields based on `options.actions.typ` and
331+
## Initialises `options.actions` fields based on `options.actions.typ` and
332332
## `key`.
333333
let keyNorm = key.normalize()
334334
case options.action.typ

src/nimblepkg/publish.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ from net import SslCVerifyMode, newContext
1414
type
1515
Auth = object
1616
user: string
17-
token: string ## Github access token
17+
token: string ## GitHub access token
1818
http: HttpClient ## http client for doing API requests
1919

2020
const
@@ -34,7 +34,7 @@ proc createHeaders(a: Auth) =
3434
})
3535

3636
proc requestNewToken(cfg: Config): string =
37-
display("Info:", "Please create a new personal access token on Github in" &
37+
display("Info:", "Please create a new personal access token on GitHub in" &
3838
" order to allow Nimble to fork the packages repository.",
3939
priority = HighPriority)
4040
display("Hint:", "Make sure to give the access token access to public repos" &
@@ -167,7 +167,7 @@ proc publish*(p: PackageInfo, o: Options) =
167167
var pkgsDir = getNimbleUserTempDir() / "nimble-packages-fork"
168168
if not forkExists(auth):
169169
createFork(auth)
170-
display("Info:", "Waiting 10s to let Github create a fork",
170+
display("Info:", "Waiting 10s to let GitHub create a fork",
171171
priority = HighPriority)
172172
os.sleep(10_000)
173173

@@ -230,7 +230,7 @@ proc publish*(p: PackageInfo, o: Options) =
230230
"No .git nor .hg directory found. Stopping.")
231231

232232
if url.len == 0:
233-
url = promptCustom("Github URL of " & p.basicInfo.name & "?", "")
233+
url = promptCustom("GitHub URL of " & p.basicInfo.name & "?", "")
234234
if url.len == 0: userAborted()
235235

236236
let tags = promptCustom(

src/nimblepkg/tools.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ proc changeRoot*(origRoot, newRoot, path: string): string =
8686
## Return value -> /home/test/bar/blah/2/foo.txt
8787

8888
## The additional check of `path.samePaths(origRoot)` is necessary to prevent
89-
## a regression, where by ending the `srcDir` defintion in a nimble file in a
89+
## a regression, where by ending the `srcDir` definition in a nimble file in a
9090
## trailing separator would cause the `path.startsWith(origRoot)` evaluation to
9191
## fail because of the value of `origRoot` would be longer than `path` due to
9292
## the trailing separator. This would cause this method to throw during package
@@ -225,7 +225,7 @@ proc newSSLContext*(disabled: bool): SslContext =
225225
when isMainModule:
226226
import unittest
227227

228-
suite "getNameVersionCheksum":
228+
suite "getNameVersionChecksum":
229229
test "directory names without sha1 hashes":
230230
check getNameVersionChecksum(
231231
"/home/user/.nimble/libs/packagea-0.1") ==
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
echo("overriden")
1+
echo("overridden")

0 commit comments

Comments
 (0)