Skip to content

Commit a973172

Browse files
committed
fix typo
1 parent 5e2a2d6 commit a973172

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ The files are moved to the `files` directory, while metadata is stored in the `i
233233
```bash
234234
$ gtrash put file1
235235

236-
# Records meta infomation
236+
# Records meta information
237237
$ cat ~/.local/share/Trash/info/file1.trashinfo
238238
[Trash Info]
239239
Path=/home/user/file1
@@ -485,7 +485,7 @@ In such cases, use the `restore` subcommand to select specific files.
485485
```bash
486486
$ gtrash put file1
487487

488-
# Records meta infomation
488+
# Records meta information
489489
$ cat ~/.local/share/Trash/info/file1.trashinfo
490490
[Trash Info]
491491
Path=/home/user/file1

internal/cmd/put.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func trashFile(trashDir xdg.TrashDir, path string, deleteTime *time.Time, fallba
324324
return nil
325325
}
326326

327-
// delete corrensponding .trashinfo file
327+
// delete corresponding .trashinfo file
328328
_ = deleteFn()
329329

330330
return fmt.Errorf("move: %w", err)

internal/cmd/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func doRestore(files []trash.File, restoreTo string, prompt bool) error {
218218
// This is necessary because rename(2) overwrites the file.
219219
if _, err := os.Lstat(restorePath); err == nil {
220220
if !prompt {
221-
glog.Errorf("cannot restore %q: restore path alread exists\n", file.OriginalPath)
221+
glog.Errorf("cannot restore %q: restore path already exists\n", file.OriginalPath)
222222
failed = append(failed, file)
223223
continue
224224
}

internal/env/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func init() {
5858

5959
// Ensure to have directory in advance
6060
if err := os.MkdirAll(path, 0o700); err != nil {
61-
fmt.Fprintf(os.Stderr, "ENV $GTRASH_HOME_TRASH_DIR coult not be created: %s", err)
61+
fmt.Fprintf(os.Stderr, "ENV $GTRASH_HOME_TRASH_DIR could not be created: %s", err)
6262
os.Exit(1)
6363
}
6464

internal/posix/dir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func DirSize(path string) (int64, error) {
2828
return block * 512, err
2929
}
3030

31-
// Look at both block-size and apparant-size and choose the larger one.
31+
// Look at both block-size and apparent-size and choose the larger one.
3232
// Because there are file systems for which block size cannot be obtained.
3333
// max(du -sB1, du -sb)
3434
func DirSizeFallback(path string) (int64, error) {

internal/tui/multiRestore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (m *multiRestoreModel) updateHit() {
175175
m.restoreTable.updateInputPrompt(false)
176176
}
177177

178-
// Convert from rows to an array of indice
178+
// Convert from rows to an array of indices
179179
func (t *filterTable) getIndices() []int {
180180
rows := t.t.Rows()
181181
if len(rows) == 0 {

0 commit comments

Comments
 (0)