diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 10:37:14 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 10:37:14 +0300 |
| commit | 0cf4e039384ace9b822316583f2ce63c9a4dfd39 (patch) | |
| tree | 12daa5308595cef11e6b8c99e7c208ff6920d911 | |
| parent | 73d94aade228aaf22237e99a22fd5a6b943fc21c (diff) | |
Add standard Deprecated tag to Value.Number()
Use the // Deprecated: format recognized by go doc, staticcheck,
and gopls instead of an inline note.
| -rw-r--r-- | internal/rpn/number.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/rpn/number.go b/internal/rpn/number.go index 47674d8..5e27dae 100644 --- a/internal/rpn/number.go +++ b/internal/rpn/number.go @@ -460,8 +460,9 @@ func (v Value) Float64() float64 { return v.numVal } -// Number returns the float64 value (deprecated, use Float64 instead). +// Number returns the float64 value. // If the value is a boolean, this returns 0 (the numeric value is not used for booleans). +// Deprecated: Use Float64 instead. func (v Value) Number() float64 { return v.numVal } |
