# [PATCH] worktree.c: fix typo

1 messages from 2016-05-06 to 2016-05-06. Participants: Li Peng.
Thread: https://gitlist.dev/t/42236

## Li Peng, 2016-05-06 11:39

Subject: [PATCH] worktree.c: fix typo
Message-ID: <1462534763-15655-1-git-send-email-lip@dtdream.com>
URL: https://gitlist.dev/e/1462534763-15655-1-git-send-email-lip%40dtdream.com

```
Fix a typo in comment.

Signed-off-by: Li Peng <lip@dtdream.com>
---
 worktree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/worktree.c b/worktree.c
index 6181a66..89ebe67 100644
--- a/worktree.c
+++ b/worktree.c
@@ -18,7 +18,7 @@ void free_worktrees(struct worktree **worktrees)
 
 /*
  * read 'path_to_ref' into 'ref'.  Also if is_detached is not NULL,
- * set is_detached to 1 (0) if the ref is detatched (is not detached).
+ * set is_detached to 1 (0) if the ref is detached (is not detached).
  *
  * $GIT_COMMON_DIR/$symref (e.g. HEAD) is practically outside $GIT_DIR so
  * for linked worktrees, `resolve_ref_unsafe()` won't work (it uses
-- 
1.8.3.1

```
