From ff078945f8f1743f404aeae275ad89ef48ec0e0f Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 24 May 2021 05:54:49 +1000 Subject: [PATCH] docs: fix a few simple typos There are small typos in: - CODING_STYLE.md - evennia/commands/cmdhandler.py - evennia/commands/default/syscommands.py - evennia/contrib/building_menu.py - evennia/prototypes/prototypes.py Fixes: - Should read `traverse` rather than `traverese`. - Should read `shortcuts` rather than `shorcuts`. - Should read `multiple` rather than `multuple`. - Should read `multiple` rather than `mulitple`. - Should read `indentation` rather than `indendation`. Closes #2420 --- CODING_STYLE.md | 2 +- evennia/commands/cmdhandler.py | 2 +- evennia/commands/default/syscommands.py | 2 +- evennia/contrib/building_menu.py | 2 +- evennia/prototypes/prototypes.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CODING_STYLE.md b/CODING_STYLE.md index 31d5ac06da..79b6a2c674 100644 --- a/CODING_STYLE.md +++ b/CODING_STYLE.md @@ -10,7 +10,7 @@ on your sources. ## A quick list of code style points - * 4-space indendation, NO TABS! + * 4-space indentation, NO TABS! * Unix line endings. * CamelCase is only used for classes, nothing else. * All non-global variable names and all function names are to be diff --git a/evennia/commands/cmdhandler.py b/evennia/commands/cmdhandler.py index 2f51ce5815..8715860df6 100644 --- a/evennia/commands/cmdhandler.py +++ b/evennia/commands/cmdhandler.py @@ -606,7 +606,7 @@ def cmdhandler( cmd.raw_string = unformatted_raw_string # cmd.obj # set via on-object cmdset handler for each command, # since this may be different for every command when - # merging multuple cmdsets + # merging multiple cmdsets if hasattr(cmd, "obj") and hasattr(cmd.obj, "scripts"): # cmd.obj is automatically made available by the cmdhandler. diff --git a/evennia/commands/default/syscommands.py b/evennia/commands/default/syscommands.py index b6291d94d0..fbbc215801 100644 --- a/evennia/commands/default/syscommands.py +++ b/evennia/commands/default/syscommands.py @@ -71,7 +71,7 @@ class SystemNoMatch(COMMAND_DEFAULT_CLASS): # -# Command called when there were mulitple matches to the command. +# Command called when there were multiple matches to the command. # class SystemMultimatch(COMMAND_DEFAULT_CLASS): """ diff --git a/evennia/contrib/building_menu.py b/evennia/contrib/building_menu.py index ee85af7811..94910d6d25 100644 --- a/evennia/contrib/building_menu.py +++ b/evennia/contrib/building_menu.py @@ -577,7 +577,7 @@ class BuildingMenu(object): keys_go_back = ["@"] # The keys allowing to go back in the menu tree sep_keys = "." # The key separator for menus with more than 2 levels joker_key = "*" # The special key meaning "anything" in a choice key - min_shortcut = 1 # The minimum length of shorcuts when `key` is not set + min_shortcut = 1 # The minimum length of shortcuts when `key` is not set def __init__( self, diff --git a/evennia/prototypes/prototypes.py b/evennia/prototypes/prototypes.py index a304dd8684..e6ea4a585b 100644 --- a/evennia/prototypes/prototypes.py +++ b/evennia/prototypes/prototypes.py @@ -653,7 +653,7 @@ def validate_prototype( ) ) - # recursively traverese prototype_parent chain + # recursively traverse prototype_parent chain for protstring in make_iter(prototype_parent): protstring = protstring.lower()