Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename get_cycle_count to cycle_count #1256

Merged
merged 4 commits into from
Dec 20, 2023
Merged

Conversation

nategraf
Copy link
Contributor

Rust naming guidelines recommend C-GETTER conventions for "getter function". This PR renames env::get_cycle_count to env::cycle_count to follow these guidelines

https://rust-lang.github.io/api-guidelines/naming.html#getter-names-follow-rust-convention-c-getter

Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2023 2:56am

Copy link

github-actions bot commented Dec 19, 2023

Pages Preview
🚀 Deployed preview to https://risc0.github.io/website-preview/risc0/risc0/pr/1256
on branch gh-pages at 2023-12-20 02:55:14 +0000

@flaub flaub added this to the 0.20.0 milestone Dec 19, 2023
@github-actions github-actions bot temporarily deployed to preview December 20, 2023 02:50 Destroyed
@flaub flaub enabled auto-merge (squash) December 20, 2023 02:57
@flaub flaub merged commit 7c9a263 into main Dec 20, 2023
27 checks passed
@flaub flaub deleted the victor/rename-get-cycle-count branch December 20, 2023 03:31
flaub added a commit that referenced this pull request Dec 20, 2023
Rust naming guidelines recommend C-GETTER conventions for "getter
function". This PR renames `env::get_cycle_count` to `env::cycle_count`
to follow these guidelines


https://rust-lang.github.io/api-guidelines/naming.html#getter-names-follow-rust-convention-c-getter

---------

Co-authored-by: Frank Laub <frank@risczero.com>
flaub added a commit that referenced this pull request Jan 17, 2024
Rust naming guidelines recommend C-GETTER conventions for "getter
function". This PR renames `env::get_cycle_count` to `env::cycle_count`
to follow these guidelines


https://rust-lang.github.io/api-guidelines/naming.html#getter-names-follow-rust-convention-c-getter

---------

Co-authored-by: Frank Laub <frank@risczero.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants