Skip to content

Commit

Permalink
fix typos (#26228)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianKurz authored and KristofferC committed Feb 27, 2018
1 parent ae3895d commit b1b5066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/REPL/src/TerminalMenus/AbstractMenu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Details can be found in
# Subtypes
All subtypes must contain the feilds `pagesize::Int` and
All subtypes must contain the fields `pagesize::Int` and
`pageoffset::Int`. They must also implement the following functions.
## Necessary Functions
Expand Down Expand Up @@ -59,7 +59,7 @@ abstract type AbstractMenu end
pick(m::AbstractMenu, cursor::Int) = error("unimplemented")

# This function must be implemented for all menu types. It defines what
# happends when a user cancels ('q' or ctrl-c) a menu. `request()` will
# happens when a user cancels ('q' or ctrl-c) a menu. `request()` will
# always exit after calling this function.
cancel(m::AbstractMenu) = error("unimplemented")

Expand All @@ -77,15 +77,15 @@ end


# OPTIONAL FUNCTIONS
# These functions do not need to be implemented for all Menu types
# These functions do not need to be implemented for all menu types
##################################################################

# If `header()` is defined for a specific menu type, display the header
# above the menu when it is rendered to the screen.
header(m::AbstractMenu) = ""

# If `keypress()` is defined for a specific menu type, send any
# non-standard keypres event to this function. If the function returns
# non-standard keypress event to this function. If the function returns
# true, `request()` will exit.
keypress(m::AbstractMenu, i::UInt32) = false

Expand Down

0 comments on commit b1b5066

Please sign in to comment.