Skip to content

[Request]: Wrong units for size used in documentation (not 1024) #519

@afbjorklund

Description

@afbjorklund

Feature or enhancement request details

The documentation says "MB" or "GB", but it is parsed as MiB or GiB.

"Amount of memory in bytes, kilobytes (K), megabytes (M), or gigabytes (G) for the container, with MB granularity (for example, 1024K will result in 1MB being allocated for the container)"

let ram = try Measurement.parse(parsing: memory)
let mb = ram.converted(to: .mebibytes)

Should use "MiB" and "GiB" also in the docs, to make it more obvious.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationnextItems in scope for the next few milestones

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions