define record() more explicitly that it is a "set the value" (#35)
motivation: define record() more explicitly that it is a "set the value" operation as it seemed to be confusing when implementing or using the API. changes: update API docs accordingly
This commit is contained in:
parent
25c2c17b45
commit
e0ec4aea36
|
|
@ -135,6 +135,9 @@ public class Recorder {
|
||||||
|
|
||||||
/// Record a value.
|
/// Record a value.
|
||||||
///
|
///
|
||||||
|
/// Recording a value is meant to have "set" semantics, rather than "add" semantics.
|
||||||
|
/// This means that the value of this `Recorder` will match the passed in value, rather than accumulate and sum the values up.
|
||||||
|
///
|
||||||
/// - parameters:
|
/// - parameters:
|
||||||
/// - value: Value to record.
|
/// - value: Value to record.
|
||||||
@inlinable
|
@inlinable
|
||||||
|
|
@ -144,6 +147,9 @@ public class Recorder {
|
||||||
|
|
||||||
/// Record a value.
|
/// Record a value.
|
||||||
///
|
///
|
||||||
|
/// Recording a value is meant to have "set" semantics, rather than "add" semantics.
|
||||||
|
/// This means that the value of this `Recorder` will match the passed in value, rather than accumulate and sum the values up.
|
||||||
|
///
|
||||||
/// - parameters:
|
/// - parameters:
|
||||||
/// - value: Value to record.
|
/// - value: Value to record.
|
||||||
@inlinable
|
@inlinable
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue