Updated README. Cleaned comment.
diff --git a/README.md b/README.md index ae63343..eb02941 100644 --- a/README.md +++ b/README.md
@@ -53,6 +53,10 @@ History ------- +v1.5.5, 31 Jul 2015 +------------------- + * [Pull Request #6](https://github.com/magiconair/properties/pull/6): Add [Delete](http://godoc.org/github.com/magiconair/properties#Properties.Delete) method to remove keys including comments. (@gerbenjacobs) + v1.5.4, 23 Jun 2015 ------------------- * [Issue #5](https://github.com/magiconair/properties/issues/5): Allow disabling of property expansion [DisableExpansion](http://godoc.org/github.com/magiconair/properties#Properties.DisableExpansion). When property expansion is disabled Properties become a simple key/value store and don't check for circular references.
diff --git a/properties.go b/properties.go index 694c84a..4abb4ab 100644 --- a/properties.go +++ b/properties.go
@@ -596,9 +596,8 @@ // ---------------------------------------------------------------------------- -// Delete removes the key and its comments -// abides by the rules of the builtin delete() -func (p *Properties) Delete(key string) () { +// Delete removes the key and its comments. +func (p *Properties) Delete(key string) { delete(p.m, key) delete(p.c, key) newKeys := []string{}