Skip to content

Commit

Permalink
fix typos (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
RainRat authored Jun 8, 2024
1 parent c466830 commit 3cc5a78
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ nonzero_ext = "0.3.0"
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = ["custom-protocol"]
# this feature is used used for production builds where `devPath` points to the filesystem
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = ["tauri/custom-protocol"]
2 changes: 1 addition & 1 deletion src-tauri/src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ pub async fn get_players_game_info(
let mut chess = Chess::default();
for (i, byte) in moves.iter().enumerate() {
if i > 54 {
// max lenght of opening in data
// max length of opening in data
break;
}
let m = decode_move(*byte, &chess).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/practice/RepertoireInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function RepertoireInfo() {

function searchForMissingMoves() {
if (!referenceDb) {
throw Error("No refernce database selected");
throw Error("No reference database selected");
}
if (!currentTab) {
throw Error("No current tab");
Expand Down
2 changes: 1 addition & 1 deletion src/state/keybinds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const keys = {
DATABASE_TAB: { name: "Go to database tab", keys: "b" },
ANNOTATE_TAB: { name: "Go to annotate tab", keys: "d" },
INFO_TAB: { name: "Go to info tab", keys: "i" },
ANNOTATION_BRILLIANT: { name: "Toggle brillant move annotation", keys: "1" },
ANNOTATION_BRILLIANT: { name: "Toggle brilliant move annotation", keys: "1" },
ANNOTATION_GOOD: { name: "Toggle good move annotation", keys: "2" },
ANNOTATION_INTERESTING: {
name: "Toggle interesting move annotation",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/engines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function useDefaultEngines(os: OS | undefined, opened: boolean) {
if (!data.ok) {
throw new Error("Failed to fetch engines");
}
/// @ts-expect-error only exists on dowloaded
/// @ts-expect-error only exists on downloaded
return data.data.filter((e) => e.os === os && e.bmi2 === bmi2);
},
);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/lichess/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export async function downloadLichess(
url,
path,
token,
totalSize: games > 0 ? games * 900 : undefined, // aprox size of a game
totalSize: games > 0 ? games * 900 : undefined, // approx. size of a game
});
}

Expand Down

0 comments on commit 3cc5a78

Please sign in to comment.