Skip to content

Language FAQ is out of date #2968

Description

@catamorphism

I just removed an obsolete reference to typestate from https://github.com/mozilla/rust/wiki/Doc-language-FAQ

but the FAQ could probably use a thorough review at this point. (I think the code example won't work with 0.3 syntax; also, no mentions of regions / borrowed pointers. Just to name a few things.)

Activity

  1. dbp commented on Jul 27, 2012

    @dbp

    Regarding the code example: the function it originally copied has grown somewhat, so what about using this (from current master)?

    fn install_package(c: cargo, src: ~str, wd: ~str, pkg: package) {
        let url = copy pkg.url;
        let method = alt pkg.method {
            ~"git" { ~"git" }
            ~"file" { ~"file" }
            _ { ~"curl" }
        };
    
        info(#fmt["installing %s/%s via %s...", src, pkg.name, method]);
    
        alt method {
            ~"git" { install_git(c, wd, url, copy pkg.ref); }
            ~"file" { install_file(c, wd, url); }
            ~"curl" { install_curl(c, wd, copy url); }
            _ {}
        }
    }
    
  2. metajack commented on Apr 25, 2013

    @metajack
    Contributor

    It was updated by #3386 and I have just updated it again.

  3. added a commit that references this issue on Jul 8, 2023
  4. added a commit that references this issue on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions