Skip to content

Commit 3a1cd9a

Browse files
portnovgeekosaur
andauthored
Fix some typos and formatting
thanks to @geekosaur Co-authored-by: brandon s allbery kf8nh <[email protected]>
1 parent 4b45f16 commit 3a1cd9a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: XMonad/Layout/DecorationEx/Engine.hs

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
-----------------------------------------------------------------------------
1212
-- |
1313
-- Module : XMonad.Layout.DecorationEx.Engine
14-
-- Description : Type class and it's default implementation for window decoration engines.
14+
-- Description : Type class and its default implementation for window decoration engines.
1515
-- Copyright : (c) 2007 Andrea Rossato, 2009 Jan Vornberger, 2023 Ilya Portnov
1616
-- License : BSD-style (see xmonad/LICENSE)
1717
--
@@ -83,8 +83,8 @@ class (Read (engine widget a), Show (engine widget a),
8383
=> DecorationEngine engine widget a where
8484

8585
-- | Type of themes used by decoration engine.
86-
-- This type must be parametrized over widget type,
87-
-- because theme will contain a list of widgets.
86+
-- This type must be parameterized over a widget type,
87+
-- because a theme will contain a list of widgets.
8888
type Theme engine :: Type -> Type
8989

9090
-- | Type of data used by engine as a context during painting;
@@ -259,7 +259,7 @@ class (Read (engine widget a), Show (engine widget a),
259259
-- | This hoook is called after a window has been dragged using the decoration.
260260
-- This is called from default implementation of "decorationEventHookEx".
261261
decorationAfterDraggingHook :: engine widget a -- ^ Decoration engine instance
262-
-> (Window, Rectangle) -- ^ Original window and it's rectangle
262+
-> (Window, Rectangle) -- ^ Original window and its rectangle
263263
-> Window -- ^ Decoration window
264264
-> X ()
265265
decorationAfterDraggingHook _ds (w, _r) decoWin = do
@@ -375,7 +375,7 @@ alignCenter engine dd widgets = do
375375
place' = place {wpRectangle = rect'}
376376
in place' : pack remaining places
377377

378-
-- | Build an instance of DrawData type.
378+
-- | Build an instance of 'DrawData' type.
379379
mkDrawData :: (DecorationEngine engine widget a, ThemeAttributes (Theme engine widget), HasWidgets (Theme engine) widget)
380380
=> engine widget a
381381
-> Theme engine widget -- ^ Decoration theme

Diff for: XMonad/Layout/DecorationEx/LayoutModifier.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
-- Portability : unportable
1919
--
2020
-- Layout modifier, which is responsible for creation of decoration rectangles
21-
-- (windows), updating and removing them when needed. It is parametrized by
21+
-- (windows), updating and removing them when needed. It is parameterized by
2222
-- @DecorationGeometry@, which says where decorations should be placed, and by
2323
-- @DecorationEngine@, which says how decorations should look.
2424
-----------------------------------------------------------------------------
@@ -48,7 +48,7 @@ import XMonad.Layout.DecorationEx.Geometry
4848
-- This module exports @decorationEx@ function, which is a generic function for
4949
-- adding decorations to your layouts. It can be used to use different
5050
-- decoration geometries and engines in any combination.
51-
-- For most used combinations, there are convinience functions in
51+
-- For most used combinations, there are convenience functions in
5252
-- "XMonad.Layout.DecorationEx.TextEngine", "XMonad.Layout.DecorationEx.TabbedGeometry",
5353
-- and "XMonad.Layout.DecorationEx.DwmGeometry".
5454
--

0 commit comments

Comments
 (0)