summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rfc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc.go b/rfc.go
index 61ea9b0..bba5aa8 100644
--- a/rfc.go
+++ b/rfc.go
@@ -99,6 +99,6 @@ func (e Entry) String() string {
}
func (e Entry) ID() (id int) {
- fmt.Sprintf(e.DocID, "RFC%d", &id)
+ fmt.Sscanf(e.DocID, "RFC%d", &id)
return
}