From ff1dc54cda45cd2634baffb0049840b36b27f662 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Mon, 6 Apr 2009 13:10:52 -0400 Subject: [PATCH] fixed typo in C++ snippets --- snippets/cpp.snippets | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index 94e26fb..e4850cd 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -3,8 +3,7 @@ snippet readfile std::vector v; if (FILE *${2:fp} = fopen(${1:"filename"}, "r")) { char buf[1024]; - while (size_t len = - fread(buf, 1, sizeof(buf), $2)) + while (size_t len = fread(buf, 1, sizeof(buf), $2)) v.insert(v.end(), buf, buf + len); fclose($2); }${3}