Skip to content

Commit

Permalink
A few docstring fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeleuze committed Aug 16, 2022
1 parent 03abce9 commit 3a71e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion calfw-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ TEXT1 < TEXT2. This function makes no-time items in front of timed-items."
))

(defun cfw:org-read-date-command ()
"Move the cursor to the specified date."
"Read a date and return it as a calendar date value."
(interactive)
(cfw:emacs-to-calendar (org-read-date nil 'to-time)))

Expand Down
4 changes: 2 additions & 2 deletions calfw.el
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ ones of DATE2. Otherwise is `nil'."
ret))))

(defun cfw:parse-str-time (str)
"Parsese a time string of the format HH:MM to an internal format."
"Parse a time string of the format HH:MM to an internal format."
(when (string-match "\\([[:digit:]]\\{2\\}\\):\\([[:digit:]]\\{2\\}\\)" str)
(cfw:time (string-to-number (match-string 1 str))
(string-to-number (match-string 2 str)))))
Expand All @@ -473,7 +473,7 @@ ones of DATE2. Otherwise is `nil'."
(cfw:emacs-to-calendar (cfw:parsetime-emacs str)))

(defun cfw:read-date-command-simple (string-date)
"Move the cursor to the specified date."
"Read a date and return it as a calendar date value."
(interactive "sInput Date (YYYY/MM/DD): ")
(cfw:parsetime string-date))

Expand Down

0 comments on commit 3a71e98

Please sign in to comment.