Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: soonsouth <cuibuwei@163.com>
  • Loading branch information
soonsouth committed Mar 15, 2024
1 parent f96d113 commit 5dd3f47
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/TerminalViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
}

- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
// Hack to resolve a layering mismatch between the the UI and preferences.
// Hack to resolve a layering mismatch between the UI and preferences.
if (@available(iOS 12.0, *)) {
if (previousTraitCollection.userInterfaceStyle != self.traitCollection.userInterfaceStyle) {
// Ensure that the relevant things listening for this will update.
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lane :build do |options|
sync_code_signing
sync_code_signing(type: 'appstore')

# do this after commiting the version bump but before building the app
# do this after committing the version bump but before building the app
if is_ci
update_code_signing_settings(
path: "iSH.xcodeproj",
Expand Down
2 changes: 1 addition & 1 deletion fs/dyndev.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// dev_ops handing char device with DYN_DEV_MAJOR major number
extern struct dev_ops dyn_dev_char;

// Registeres new block/character device with provided major and
// Registers new block/character device with provided major and
// minor numbers, handled by provided ops
//
// ops should be valid for "kernel" lifetime (should not be freed, but
Expand Down
4 changes: 2 additions & 2 deletions fs/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ static int file_lock_acquire(struct inode_data *inode, struct file_lock *request
} else if (lock->start < request->start) {
// lock sticks out on the start, so move the end down
assert(lock->end >= request->start);
// subtract can't overflow since the comparision above would fail if request->start is 0
// subtract can't overflow since the comparison above would fail if request->start is 0
lock->end = request->start - 1;
} else if (lock->end > request->end) {
// lock sticks out on the end, so move the start up
assert(lock->start <= request->end);
// add can't overflow since the comparision above would fail if request->start is OFF_T_MAX
// add can't overflow since the comparison above would fail if request->start is OFF_T_MAX
lock->start = request->end + 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion util/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct timer *timer_new(clockid_t clockid, timer_callback_t callback, void *data
void timer_free(struct timer *timer);
// value is how long to wait until the next fire
// interval is how long after that to wait until the next fire (if non-zero)
// bizzare interface is based off setitimer, because this is going to be used
// bizarre interface is based off setitimer, because this is going to be used
// to implement setitimer
struct timer_spec {
struct timespec value;
Expand Down

0 comments on commit 5dd3f47

Please sign in to comment.