15003: Update doc comment on Map, and use it in lib/service.
[arvados.git] / sdk / go / arvados / duration.go
index 25eed010f26c534ef8e36dfa119065731d1e2ac4..d3e11c7a5e673aebe84cbb98a807fa0ef1806b64 100644 (file)
@@ -23,7 +23,7 @@ func (d *Duration) UnmarshalJSON(data []byte) error {
 }
 
 // MarshalJSON implements json.Marshaler.
-func (d *Duration) MarshalJSON() ([]byte, error) {
+func (d Duration) MarshalJSON() ([]byte, error) {
        return json.Marshal(d.String())
 }